In message , John
Machin wrote:
> What a long journey: parse xml, base64 decode, gunzip,
> and you're still not home; next stop is struct.unpack ...
Binary data in an XML file?? Were these the same folks who worked on OOXML,
by any chance?
--
http://mail.python.org/mailman/listinfo/python-lis
Niels Egberts wrote:
On Sat, Jun 13, 2009 at 4:38 AM, John Machin wrote:
...
And thanks for the tip on struct.unpack I managed to get a list of
integers to work with.
You might make do with array.fromstring (perhaps using .byteswap
afterwards) to get your numbers if you are talking more than a
On Sat, Jun 13, 2009 at 4:38 AM, John Machin wrote:
> | >>> guff[:100]
> | '\x1b\x00\x00\x00\x1b\x00\x00\x00\x1b\x00\x00\x00 [snip]
>
> What a long journey: parse xml, base64 decode, gunzip,
> and you're still not home; next stop is struct.unpack ...
>
> HTH,
> John
Thanks for the help! I dont thi
Niels Egberts gmail.com> writes:
> zlib.error: Error -3 while decompressing data: incorrect header check
>
> How can I solve this?
The link you quoted says "you need to first base64 decode
the string, then gunzip the resulting data" ... so gunzip it:
| >>> s0 =
"H4sIA.."
| >>> import b