<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>27 Feb 2018 17:27:00 Z</lastBuildDate><pubDate>26 Feb 2018 16:03:00 Z</pubDate><description>Hi,&#13;
&#13;
We are working on the creation of UBL files (invoices) with embedded PDF. The PDF must be encoded in base64. We managed to do this using the code&#13;
LsBase64Content is string = Encode(fLoadBuffer(LsFileName), encodeBASE64) When we test our UBL files on https://v2.validex.net/ then mostly we get the answer 'Length of base64 value must be a multiple of four'. So approximate 1 on 4 invoices are passing the test because the length of the string is a multiple of 4.&#13;
We also tried with Crypt but this gives exactly the same result.&#13;
LsBase64Content is string = Crypt(fLoadBuffer(LsFileName),"",compressNone + cryptNone, encodeBASE64)&#13;
How can we fix that the length is a multiple of 4 and that the PDF can be retrieved by any other software?&#13;
&#13;
Thank you for your advice!&#13;
&#13;
Regards,&#13;
Joris</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64716-ubl-with-embedded-pdf/read.awp</link><title>UBL with embedded PDF</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64716-ubl-with-embedded-pdf-64743/read.awp</comments><pubDate>27 Feb 2018 17:27:00 Z</pubDate><description>Thank you Fabrice, you are right!&#13;
&#13;
We made an error in our code that removed these = signs :rolleyes:&#13;
&#13;
Kind regards,&#13;
&#13;
Jori…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64716-ubl-with-embedded-pdf-64743/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64716-ubl-with-embedded-pdf-64743/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64716-ubl-with-embedded-pdf/read.awp">UBL with embedded PDF</source><title>Re: UBL with embedded PDF</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64716-ubl-with-embedded-pdf-64723/read.awp</comments><pubDate>26 Feb 2018 19:05:00 Z</pubDate><description>Are you using VariantToJSON or something like that?&#13;
&#13;
VariantToJSON and encode base64 is a mess.&#13;
I don't know if the same happ…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64716-ubl-with-embedded-pdf-64723/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64716-ubl-with-embedded-pdf-64723/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64716-ubl-with-embedded-pdf/read.awp">UBL with embedded PDF</source><title>Re: UBL with embedded PDF</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64716-ubl-with-embedded-pdf-64722/read.awp</comments><pubDate>26 Feb 2018 18:56:00 Z</pubDate><description>Hi Joris,&#13;
&#13;
that is strange... AFAIK, the encodebase64 option DOES create a 4s multiple length string (it completes the end wit…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64716-ubl-with-embedded-pdf-64722/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64716-ubl-with-embedded-pdf-64722/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64716-ubl-with-embedded-pdf/read.awp">UBL with embedded PDF</source><title>Re: UBL with embedded PDF</title></item></channel></rss>
