0

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:

vikingosegundo
  • 52,040
  • 14
  • 137
  • 178
Becksters
  • 33
  • 1
  • 12

1 Answers1

0

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

vikingosegundo
  • 52,040
  • 14
  • 137
  • 178
  • thank you! so can I use functions here: http://folio.furman.edu/citecoll/testPage in my downloading? – Becksters Jul 19 '12 at 12:10
  • What xml are you talking about? – vikingosegundo Jul 19 '12 at 12:36
  • the translation in here http://folio.furman.edu/lichfield/folio/overview?folio=urn%3Acite%3Afufolio%3AmsChad.1v – Becksters Jul 19 '12 at 15:03
  • I dont see any xml, but html. please search for it on stack overflow. there are many posts regarding xml/html parsing. – vikingosegundo Jul 19 '12 at 15:30
  • oops i meant this http://furman-folio.appspot.com/CTS?withXSLT=chs-gp&request=GetPassagePlus&urn=urn:cts:greekLit:tlg0031.tlg001.lichfield001:1&inv=inventory.xml it's in an xml. But thank you so much for answering! I do have images, I really appreciate it – Becksters Jul 19 '12 at 18:21