jpeg metadata

Hello!

I need to modify the metadata of a jpeg file, i managed to modify metadata that photoshop displays (XMP) but not the metadata that windows displays when you right-click on jpeg file and choose Properites >> Summary. Does anyone know how to modify that metadata also?

P.S.

To modify XMP metadata the one that Photoshop displays in file info i used a library provided at:

http://www.zonageek.com/software/java/jpeg/

[459 byte] By [cyberrate] at [2007-9-30 19:16:19]
# 1
TAke a look at ImageIO (jdk 1.4 and above). This framework provides methods for accessing and modifying some of the metadata assocaited with a variety of image formats.matfud
matfud at 2007-7-6 23:28:34 > top of Java-index,Java Essentials,Java Programming...
# 2

I have tryed it, of course and it's good for extracting Metadata as a raw byte[] which can than be converted to string and modifyed, but if XMP data is stored pretty much like XML data there and can be easly parsed, than the data that Windows encrypts in image Metadata looks like this:

__

>?HHAdobe Photoshop CS WindowsH2004:09:24 10:41:45CopleftTitle WinCOMM winAuthor WINKEY WINSubject Win??Vf??

__

while in XP in image Properties >> Summary i entered following values:

Title Win

COMM win

Author WIN

KEY WIN

Subject Win

so in the output string i see only values without the keys, and i don't know how to parse that.

Any suggestions?

cyberrate at 2007-7-6 23:28:34 > top of Java-index,Java Essentials,Java Programming...
# 3
is the code in [url= http://forum.java.sun.com/thread.jsp?forum=20&thread=556049]this example[/url] useful?
DrLaszloJamf at 2007-7-6 23:28:34 > top of Java-index,Java Essentials,Java Programming...
# 4
I haven't tryed it.
cyberrate at 2007-7-6 23:28:34 > top of Java-index,Java Essentials,Java Programming...