How to convert image into base64 string using javascript -


i need convert image base64 string can send image server. there js file this... ? else how convert it

you can use html5 <canvas> it:

create canvas, load image , use todataurl() base64 representation (actually, it's data: url contains base64-encoded image).


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -