In javascript, is there a way to turn a url into a data-url? -


I want to get a regular old URL and would like to convert it into a data url which encodes the whole file. Is there any way to do this?

Alternatively, the question may be: Is there a way to get file object for a given url? (Because then I could use readAsDataURL to call FileReader ).

take a regular old URL and convert it into a data url which is full file Encode

... This means that you need to get data from the file. This can be done using a XMLHttpRequest (unless the URL points to you). Then take the loaded data, pass it, and insert it with the feedback header.


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -