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

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -