Hi folks,
I'm downloading a zip file via a web service call - the file is embedded as a
long string within the ... node of the XML file, accompanied
by a set of nodes that name the (xml text) files that I should find within the
zipped payload.
So, I save this string out to to disk with...
put
Hi Keith,
Your zip file is corrupt. First of all, replace "file:" with "binfile:".
It is possible that the revXML external can't cope with binary data. In that
case, your zip file will stay corrupt and you'll have to retrieve the data
manually.
--
Best regards,
Mark Schonewille
Economy-x-Tal
Thanks for the response Mark, the tip on binfile and the possible limitations
of revXML.
This particular XML file isn't too complex. So, although I have the STSXML
libary available, I'll first try extracting the zip file node string as a text
chunk.
Best,
Keith..
On 6 Jun 2011, at 16:22, Mark
Sorted - I dropped the string into TextWrangler and saved it with the same
result, so it wasn't revXML failing to handle binary data.
A deeper dig into the web service documentation found that zip file string is
base64encoded.
So, a quick decode before the save to URL binfile:... and all is well.