[WD18] How to include a pdf file in a XML file.

Startbeitrag von Gianni Spano am 23.05.2015 21:00

Hello to All

I need to include a pdf file (or other file type ie. gif, tiff,jpg) in a XML file as an attachment.

The pdf file must be included in "xs:base64binary" format.

Pls, who want to explain me in details what do i need to do this operation??
Is there some function that i don't know in Windev?

Example are welcome.

Thanks in advance
Gianni

Antworten:

Hi Gianni

if I remember correctly, the crypt function has a mode that give base64 as a result (see help for details)... So you load your binary file in a buffer, use crypt tp generate a string in base64, then add that string at the appropriate place in your xml file

Best regards

von Fabrice Harari - am 23.05.2015 22:53
Hi Fabrice

Yes...This is the solution i thought.
After my post i found the "fcrypt" function that do the trick.
I did a little test and the file can be "attached" in the XML file...

Thanks
Gianni

von Gianni Spano - am 24.05.2015 09:45
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.