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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -