From my Javascript code I would like to read MyBinaryFile.xxx, that contains binary data (such as a JPG) and is placed on the server (String url). The result of this function should be a byte array.
Is there a way to do this in a cross-browser way?
Thank you
Only if your file are in the same domain of your script, can be access vial url, then you can use ajax to load that file. Just treat it like normal ajax call.
For example your script in
http://localhost/script.htmlwant to access a file inhttp://localhost/mybin.xxx. You can do with jQuery