I'm not strong in JavaScript, but I need to resort to it. The task is not very standard. There is approximately such html:
<img src='http://server.com/?image=RANDOM_STRING' /> The image is generated different. I can add attributes to this tag. I need to receive this image and transmit it through a browser, i.e. via JS. There are no problems with sending, only I cannot do anything with receipt. Perhaps this post will help with something: https://stackoverflow.com/questions/934012/get-image-data-in-javascript