gzipped images in SIAP 1.0

Roy Williams roy at cacr.caltech.edu
Tue May 22 09:31:15 PDT 2007


Thank you all for your help with this especially Tom and Norman. I am 
seeing how to do it without tedious changes to SIAP protocol. Is the 
below how it should work?
Roy

(1) My client code searches for a format attribute which contains the 
string "image/fits"

(2) It then gets http headers plus data blob from the given URL.

(3) If the headers have a content-encoding of gzip, then uncompress like 
this
    if headers.has_key('content-encoding') and 
headers['content-encoding'] == 'gzip':
        gunzip the blob



More information about the dal mailing list