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

JPEG Comments

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a

"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

P: n/a
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

P: n/a
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

P: n/a
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.