[DUG] XML data to image problem

Phil Scadden p.scadden at gns.cri.nz
Thu Apr 21 11:07:17 NZST 2011


>
> I have tried changing the file extension but it does not open.  I have
> also tried no base 64 decode but that also fails to produce a valid
> file.  Can anyone see anything obviously wrong before I go back to the
> source for further information (they are in the UK so its a day turn
> around AND they are really unhelpful).
I'm surprised that the file detail isnt in XML tags, but anyway, once 
you have translated from base64, have a closer look at the byte stream. 
If its jpeg, then should have the jpeg structure. Ie, should begin with 
FFD8 then FF plus another marker byte, probably E something.
If its PNG, then it will start 89(hex). And so forth.
-- 
Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, 
Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232

Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.



More information about the Delphi mailing list