Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extract PDF from XML
Message
From
16/11/2022 07:03:21
 
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
01685345
Message ID:
01685347
Views:
37
I know that :-) but how to convert to PDF file (base 64 encoded)? Simply STRTOFILE or something else?

Hi,

Because you don't write more...
LOCAL m.lcData, m.liES, m.liEE, m.lcES, m.lcEE
m.lcES="<pdfstart>"
m.lcEE="</pdfstart>"

m.lcData=FILETOSTR("any.xml")
m.liES=AT(m.lcES, m.lcData)
m.liEE=AT(m.lcEE, m.lcData)

m.lcPDFDATA=SUBSTR(m.lcData, m.liES+LEN(m.lcES), m.liEE-m.liSE-LEN(m.lcES)-1)

?m.lcPDFDATA && data can be encode base64 or hex 
MartinaJ

>How can I extract PDF file which is integrated in XML as a attachment tag? (Note VFP6)
>
>Thanks in advance.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform