How to access the image at a .jpeg url to a Base64 encoding javascript -


i trying have image insertion system. i've been able local images , images url, need base64 encode url images before transmission server. there anyway it?

the local images encoded automatically when read them readasurl. how handle urls in similar fashion?

if understand correctly want take url image on web , turn base64-encoded data: url (similarly readasdataurl() return). won't possible because of same-origin policy - images load other sites might contain sensitive data, allowed show them user not read out data. might able if other site cooperates (via cors) doubt want rely on it. won't able implement on client side - should send url server , server should download image.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -