By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,441 Members | 998 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,441 IT Pros & Developers. It's quick & easy.

JPG images to binary

P: n/a
Hi,

Does anybody know any javascript which converts images into binary
data.

Thanks in advance,

R.

Feb 2 '06 #1
Share this Question
Share on Google+
7 Replies


P: n/a
wrote on 02 feb 2006 in comp.lang.javascript:
Does anybody know any javascript which converts images into binary
data.


Images in a computer are binary data.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 2 '06 #2

P: n/a

ro*****************@gmail.com wrote:
Hi,

Does anybody know any javascript which converts images into binary
data.

Thanks in advance,

R.


If you mean, read a binary file into a JavaScript variable, then
JavaScript does not have a binary data type. You can indirectly handle
binary in JavaScript, but performance will not be good. See the
following-

<URL:http://www.henk-reints.nl/cgi-bin/getsrc?http://henk-reints.nl/jscript/js/hr$binstring.js>
<URL:http://groups.google.co.uk/group/comp.lang.javascript/tree/browse_frm/thread/a17d4cb094ee799a/a5c08e67b8f14a37?rnum=1&q=Julian+Turner+Binary&_do ne=%2Fgroup%2Fcomp.lang.javascript%2Fbrowse_frm%2F thread%2Fa17d4cb094ee799a%2F9e26a3662854fdd3%3Flnk %3Dst%26q%3DJulian+Turner+Binary%26rnum%3D1%26#doc _d130efcd7f345ce6>

Regards

Julian

Feb 2 '06 #3

P: n/a
Thanks for help.. but i need to convert image into a stream of bits or
a stream of characters.

R

Feb 3 '06 #4

P: n/a
Thanks for help.. but i need to convert image into a stream of bits or
a stream of characters.

R

Feb 3 '06 #5

P: n/a
I want to calculate the sha1 hash of image data for all images in the
body. Is there any way to do that?
Any help would be appreciated!
Thanks !

R

Feb 3 '06 #6

P: n/a
wrote on 03 feb 2006 in comp.lang.javascript:
Thanks for help.. but i need to convert image into a stream of bits or
a stream of characters.


Please quote what you are replying to. If you want to post a followup via
groups.google.com, don't use the "Reply" link at the bottom of the article.
Click on "show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers.
<http://www.safalra.com/special/googlegroupsreply/>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 3 '06 #7

P: n/a
wrote on 03 feb 2006 in comp.lang.javascript:
I want to calculate the sha1 hash of image data for all images in the
body. Is there any way to do that?
Any help would be appreciated!


Please quote what you are replying to. If you want to post a followup via
groups.google.com, don't use the "Reply" link at the bottom of the article.
Click on "show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers.
<http://www.safalra.com/special/googlegroupsreply/>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 3 '06 #8

This discussion thread is closed

Replies have been disabled for this discussion.