Page 2 of 2
Re: Convert PDF to Base64
Posted: Fri Apr 23, 2021 12:20 am
by Tom
Hi, Pedro.
It's exactly the same result.
Re: Convert PDF to Base64
Posted: Fri Apr 23, 2021 4:24 am
by PedroAlex
Tom,
What's your Alaska xBase++ version?
Re: Convert PDF to Base64
Posted: Fri Apr 23, 2021 5:13 am
by Tom
2.0.1400
But there is no different behaviour in older versions of 2.0.
Re: Convert PDF to Base64
Posted: Sat Apr 24, 2021 1:23 am
by PedroAlex
Tom,
You're right.
Bin2Base64 works well.
My problem was this line of code.
Code: Select all
cB64 := Bin2Base64( cStream )
MsgBox( 'CB64 ' + cB64 ,'PDF to Base64')
Msgbox () is unable to display the string with the result.
Many thanks.
Note : Here in my country we have to start sending the invoices by EDI (Electronic Delivery Invoice) and this function is necessary to attach the Pdf to the file in UBL2.1.
Re: Convert PDF to Base64
Posted: Mon Jun 14, 2021 8:56 am
by unixkd
Hi Gradosic
I could not find the function - ToBase64() in OT4XB.DLL.
It is not equally available in the dll i downloaded from your link
I use ot4xb.dll a lot.
Thanks
Joe
Re: Convert PDF to Base64
Posted: Mon Jun 14, 2021 2:39 pm
by Auge_Ohr
hi,
i recommend only to use Files, with Source, direct from Pablo Botella
https://blog.xbwin.com/
---
like Joe i can´t find ToBase64() in Ot4xb ...
Re: Convert PDF to Base64
Posted: Tue Jun 15, 2021 12:08 am
by Tom
There is no ToBase64() in OT4XB. That is/was an ASINET-function.
Use Bin2Base64() from Xbase++ directly or xbBase64Encode() from Xb2.Net.
Re: Convert PDF to Base64
Posted: Tue Jun 15, 2021 10:02 am
by unixkd
Thanks Tom and Jimmy, that clarification is very necessary.
The xb2Net function works perfectly.
Joe