« Return to Thread: Using JpegXMPFrame to remotely access XMP inside JPGs over HTTP

Using JpegXMPFrame to remotely access XMP inside JPGs over HTTP

by Fergal Monaghan :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi guys,

 

            I’ve been using JpegComFrame to access the comment block inside JPGs remotely by asking for e.g. http://sw.deri.org:8001/Photos/20071009162628.jpg;application%2frdf%2bxml

Now I want to switch over to using XMP and JpegXMPFrame: but when I run JigAdmin there isn’t the same dual MIME type options like with JpegComFrame. The only documentation I can find online on using JpegXMPFrame are single sentences like “This class will read the XMP marker from a jpeg file and return it depending on the Accept: header” [1] or “Used to extract XMP from Jpeg images.” [2] From this I can only guess that it is not possible to simply append the desired MIME type to the end of the URL, but to create an Accept header in the HTTP request. I’ve tried the following Java in an attempt to do this programmatically, with no luck:

URL modelURL = new URL("http://sw.deri.org:8001/Photos/20080201141047.jpg");

HttpURLConnection huc = (HttpURLConnection)modelURL.openConnection();

huc.addRequestProperty("accept", "xmp");

           

            How exactly do I use the Accept: header to retrieve just the XMP metadata over HTTP? What MIME type do I need to specify? Is there any documentation anywhere that could be useful? Help!


Fergal Monaghan,

PhD Candidate,

Digital Enterprise Research Institute,

National University of Ireland, Galway,

IDA Business Park,

Lower Dangan,

Galway,

IRELAND.

 

[1] http://jigsaw.w3.org/Doc/Programmer/api/org/w3c/jigsaw/frames/JpegXMPFrame.html

[2] http://jigsaw.basemirror.de/Doc/Reference/frames.html

 

 « Return to Thread: Using JpegXMPFrame to remotely access XMP inside JPGs over HTTP