I'm editing an existing system to pass an image from the server file system to an api.
I get the image data like so:
$.get("image.png", function(data) {
document.write(data)
});
The result is something like this:
�PNG IHDR��}Ծ�sRGB���bKGD������� pHYs��tIME�߯,� IDATx���}��kv��;1�R;Z����HMm��3sNf��
Probably a stupid question, but is this blob data? Or can this be used to reconstruct an image? Or is there a better way to get blob or binary data?