PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Base64 to PDF file
Base64 to PDF file
Iniciado por jacquesbica, 12,nov. 2015 11:18 - 4 respuestas
Publicado el 12,noviembre 2015 - 11:18
Hi,
I have an XML (electronic invoice) with a tag containing the image of a PDF file encoded with Base64 format. I need to decode this string and turns it into a PDF file. Can anyone show me the way?

<NFS-ePDF>JVBERi0xLjQKJeLjz9MKMSAwIG9iaiA8PC9UeXBlL1hP (...) go1MjE4MgolJUVPRgo=</NFS-ePDF>

Thank you.

Jacques Bica
WD20
Publicado el 12,noviembre 2015 - 14:28
Hi Jacques,

if I understand the question, you are looking for the uncyrpt function,
with the base64 option

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com

On 11/12/2015 5:18 AM, Jacques Bica wrote:
Hi,
I have an XML (electronic invoice) with a tag containing the image of a
PDF file encoded with Base64 format. I need to decode this string and
turns it into a PDF file. Can anyone show me the way?

<NFS-ePDF>JVBERi0xLjQKJeLjz9MKMSAwIG9iaiA8PC9UeXBlL1hP (...)
go1MjE4MgolJUVPRgo=</NFS-ePDF>

Thank you.

Jacques Bica
WD20
Publicado el 12,noviembre 2015 - 14:40
To decode BASE64 use yhe Uncrypt function.

http://doc.windev.com/en-US/…
Publicado el 13,noviembre 2015 - 00:06
Thank you for your answer, but I already tryed uncrypt function. Unfortunately it does not work.
But If I copy & paste the Base64 string into any site to decode online, for sample http://www.motobit.com/util/base64-decoder-encoder.asp it works. I get a PDF file.
Publicado el 13,noviembre 2015 - 16:04
Hi

you should show us your code that doesn't work, because believe me,
using uncrypt -IS- the way to go.

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com

On 11/12/2015 6:06 PM, Jacques Leonel Bica wrote:
Thank you for your answer, but I already tryed uncrypt function.
Unfortunately it does not work.
But If I copy & paste the Base64 string into any site to decode online,
for sample http://www.motobit.com/util/base64-decoder-encoder.asp it
works. I get a PDF file.