Question

So I need to get images and xml from a server using this URN thing.. but in all honesty I'm pretty confused about it so any help would be GREATLY appreciated.

For example, here is a citation to a high-resolution, full-color digital image of page 12 of the St. Chad Gospel from Lichfield Cathedral: urn:cite:fufolioimg:ChadRGB.Chad012. The citation is in urn format

Any image whose URN is known can be loaded into the Image Citation Tool by adding its URN to the address. By default, the tool’s address is this:

folio.furman.edu/projects/cite-roi/index.html?w=600&urn=urn:cite:fufolioimg:ChadRGB.Chad012

The CHS Image service understands these requests:

GetBinaryImage GetCaption GetRights GetIIPMooViewer

I don't know how to use all this information to connect and get images or xml.

additional references to help:

Was it helpful?

Solution

The page for your address contains this link:

http://amphoreus.hpcc.uh.edu/tomcat/chsimg/Img?&request=GetBinaryImage&urn=urn:cite:fufolioimg:ChadRGB.Chad012&w=3000

this redirects to

http://amphoreus.hpcc.uh.edu/fcgi-bin/iipsrv.fcgi?OBJ=IIP,1.0&FIF=/project/homer/Lichfield/ptiffs/Chad_RGB_ptiffs/Chad012.tif&RGN=null&WID=3000&CVT=JPEG

the image with a width of 3000px.

So you just need to download the image for this address

http://amphoreus.hpcc.uh.edu/tomcat/chsimg/Img?&request=GetBinaryImage&urn=urn:cite:fufolioimg:ChadRGB.Chad012&w=3000

There are thousands of answers on stackoverflow showing yow you can download something.


NSSTring urn = @"urn:cite:fufolioimg:ChadRGB.Chad012";

NSString *urlString = [NSString stringWithFormat:@"http://amphoreus.hpcc.uh.edu/tomcat/chsimg/Img?&request=GetBinaryImage&urn=%@&w=3000", urn];

I prefer using AFNetworking

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top