[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[qftestJUI] The binary encoded screenshot in qrz files
Using PHP, I am able to gunzip the qrz file, parse the resulting XML file to get the exceptions and the errors.
What i would like to do now is to display the image from within the <Imagewrapper...> nodes. Is this image in a png and/or compressed format?
I tried to decode it using PHP's base64_decode function but the resulting file is neither a png file nor a jpeg.
I saw a previous post at http://www.qfs.de/archive/qftest-list/2005/msg00007.html but I am somewhat puzzled.
I thought that i could base64_decode the contents of the <binary...>nodes within <imagewrapper...> and then use gzinflate of PHP on it. But when i base64_decode the file, i just get a warning back from PHP saying "data error". Are there any headers that I need to strip out or has the encoding changed recently please?
If i just base64_decode it and write the output to a file, I cannot g-unzip it.
I am using QFtestJUI v 1.08.5. Reference to PHP regarding base64_decode : http://uk.php.net/manual/en/function.base64-decode.php
Thanks in advance for any ideas/ help.