What I want to do is use jQuery to request an image (a graph in this case).
In jQuery I’m setting the src attribute on my image which pulls down the graph from the server as expected.
$("#graphImage").attr("src", graphUrl);
I want to be able to send some Header information down with this request and have jQuery read it.
How can I do this. A friend of mine recommended downloading the image using ajax to a blob then writing the blob to the image tag…not sure how this can be done.
Try this for Non IE browsers < 7. For
Code to convert image to base64 string