N
Neil
Is there any way to access the image files referenced in the src
attribute of img elements using client-side javascript? It doesn't
seem like a real security issue, given that you can simply right-click/
copy/paste any image in your browser, yet I can't seem to find a way.
If not, is there a way to encode images to strings such that they can
be manipulated that way? You can create an image inline in javascript
in the following manner: <img src="data:image/gif;base64,AAABAAEAEB...
(...the rest of the base64 string)...>
Is there any way to go the other direction? To take an image from the
page and convert/encode it to a string?
Ultimately, I'm looking to create a post action that includes an image
from a page (or even simply a URI to an image, e.g.,
http://www.google.com/images/logo.gif). It's looking more and more
like the only solution is simply to get the URI client-side and
retrieve the image server-side. This has some drawbacks for me, so I
was hoping someone here might be able to help.
Thanks for your time,
Neil
attribute of img elements using client-side javascript? It doesn't
seem like a real security issue, given that you can simply right-click/
copy/paste any image in your browser, yet I can't seem to find a way.
If not, is there a way to encode images to strings such that they can
be manipulated that way? You can create an image inline in javascript
in the following manner: <img src="data:image/gif;base64,AAABAAEAEB...
(...the rest of the base64 string)...>
Is there any way to go the other direction? To take an image from the
page and convert/encode it to a string?
Ultimately, I'm looking to create a post action that includes an image
from a page (or even simply a URI to an image, e.g.,
http://www.google.com/images/logo.gif). It's looking more and more
like the only solution is simply to get the URI client-side and
retrieve the image server-side. This has some drawbacks for me, so I
was hoping someone here might be able to help.
Thanks for your time,
Neil