javascript - Save src data:image information as file -
javascript - Save src data:image information as file -
i using classic asp , have created preview script in jquery.
$('#file').change(function(){ var ofreader = new filereader(); ofreader.readasdataurl(this.files[0]); ofreader.onload = function (ofrevent) { $('#preview').html('<img id="trial" src="' + ofreader.target.result + '">'); }; });
this works add together provides preview of image within of div called #preview.
what need physically save file directory on website?
the resultant img tag has next src value:
src = 'data:image/png; base64,xxxxxxxxx'
where xxxxxxxxx base of operations 64 encode string , png file type (can jpg, gif, etc)
there not appear way of doing easily, created .net dll job me.
javascript jquery vbscript
Comments
Post a Comment