470,648 Members | 1,608 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,648 developers. It's quick & easy.

JPEG Comments

I have been told that there is no way to access the JPEG comment field
using javascript. I have used a hex editor and can see the comment near
the beginning of the JPEG file. Is there any way to access the source
of a JPEG picture that has been loaded and then possibly extract and
manipulate the data to extract the comment?

--
Dennis Marks
http://www.dcs-chico.com/~denmarks/
To reply change none to dcsi.
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 23 '05 #1
4 1819

"Dennis Marks" <de******@none.net> wrote in message
news:080520041017159233%de******@none.net...
I have been told that there is no way to access the JPEG comment field
using javascript. I have used a hex editor and can see the comment near
the beginning of the JPEG file. Is there any way to access the source
of a JPEG picture that has been loaded and then possibly extract and
manipulate the data to extract the comment?


Not using Javascript. Javascript only has access to the HTML dom tree, not
the actual binary data contained in the image.
Jul 23 '05 #2
Murray wrote on 08 mei 2004 in comp.lang.javascript:
"Dennis Marks" <de******@none.net> wrote in message
news:080520041017159233%de******@none.net...
I have been told that there is no way to access the JPEG comment
field using javascript. I have used a hex editor and can see the
comment near the beginning of the JPEG file. Is there any way to
access the source of a JPEG picture that has been loaded and then
possibly extract and manipulate the data to extract the comment?


Not using Javascript. Javascript only has access to the HTML dom tree,
not the actual binary data contained in the image.


Not quite true.

Serverside code, either js or vbs, has access.

Clientside code, either js or vbs, has NOT.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 23 '05 #3
In article <Xn********************@194.109.133.29>, Evertjan.
<ex**************@interxnl.net> wrote:
Murray wrote on 08 mei 2004 in comp.lang.javascript:
"Dennis Marks" <de******@none.net> wrote in message
news:080520041017159233%de******@none.net...
I have been told that there is no way to access the JPEG comment
field using javascript. I have used a hex editor and can see the
comment near the beginning of the JPEG file. Is there any way to
access the source of a JPEG picture that has been loaded and then
possibly extract and manipulate the data to extract the comment?


Not using Javascript. Javascript only has access to the HTML dom tree,
not the actual binary data contained in the image.


Not quite true.

Serverside code, either js or vbs, has access.

Clientside code, either js or vbs, has NOT.


Too bad. The comment would be a great place to keep descriptive data to
be displayed with a picture.

--
Dennis Marks
http://www.dcs-chico.com/~denmarks/
To reply change none to dcsi.
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 23 '05 #4
Dennis Marks wrote:
Too bad. The comment would be a great place to keep descriptive data
to be displayed with a picture.


There are a number of server-side image gallery applications which do
exactly this :)

--
Matt Kruse
Javascript Toolbox: http://www.mattkruse.com/javascript/
Jul 23 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Markus Bulmer | last post: by
1 post views Thread by Eugene Morozov | last post: by
5 posts views Thread by news.west.cox.net | last post: by
3 posts views Thread by BluDog | last post: by
1 post views Thread by Brett_A | last post: by
2 posts views Thread by =?Utf-8?B?bWNpbWFnaW5n?= | last post: by
4 posts views Thread by Pacino | last post: by
11 posts views Thread by Mark B | last post: by
1 post views Thread by Korara | last post: by
reply views Thread by warner | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.