I wrote a bookmarklet that find images on the currently displayed web page. The script, intends to upload an image binary data (not the img src) to a web server, in the same domain as the bookmarklet, for further processing.
this is a bit of code:
$("#img").load(function(data){
alert(this.src);
})
what I get is the img src => http:// ... I don't know what is in the variable "data". What I need is to convert "this" object to binary, eventually to base64 encoded string I can place in a textarea object, then submit a form to the surver.
I can I convert the object to binary data, please?