Page 1 of 1

Extract an Embedded PDF file

Posted: Thu Aug 07, 2014 3:13 pm
by luv2ski555
I'm using HL7 2.3 and Need to extract an embedded PDF file and save it as a regular PDF file from the ZEF segment. I have not been very successful on finding information of how you would go about this. Can anyone give me some ideas on how you would extract a PDF from the ZEF segment?

The ZEF segment look like this
ZEF|1|JVBERi0xLjMNCjEgMCBvYmoNCjw8DQovVHlwZSAvQ2F0YWx...

Thanks

Re: Extract an Embedded PDF file

Posted: Sat Aug 09, 2014 6:21 pm
by luv2ski555
Can anyone tell me if DelphiHL7 supports extracting PDF's from the ZEF segment?

Re: Extract an Embedded PDF file

Posted: Fri Aug 22, 2014 1:52 pm
by admin
Hi,

it's a looked base64.
You can use AsBase64 property or Encode/Decode Delphi functions.

Best Regards.