Hola, ¿ como puedo convertir un archivo PDF a Base64 ? desde xHarbour, he leído que necesito una librería, donde puedo descargarla ?
Gracias por su ayuda, saludos
Pdf a Base64
Re: Pdf a Base64
Mira:
use google traductor, pls.
http://www.pctoledo.com.br/forum/viewto ... =4&t=27051
https://base64.guru/converter/encode/pdf
https://fivewin.com.br/index.php?/topic ... em-base64/
https://fivetechsoft.com/forums/viewtopic.php?t=39694
Regards, saludos.
use google traductor, pls.
http://www.pctoledo.com.br/forum/viewto ... =4&t=27051
https://base64.guru/converter/encode/pdf
https://fivewin.com.br/index.php?/topic ... em-base64/
https://fivetechsoft.com/forums/viewtopic.php?t=39694
Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
- Enrico Maria Giordano
- Posts: 8728
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Pdf a Base64
Code: Select all | Expand
cTxt = MEMOREAD( cPdf )
cBase4 = HB_BASE64ENCODE( cTxt, LEN( cTxt ) )
Re: Pdf a Base64
Otra forma
Code: Select all | Expand
local cText := space(0)
local rutapdf := ".\pdfs\"+Retorna_Caracter(vCsc)+".pdf"
local rutaTXT := ".\pdfs\"+Retorna_Caracter(vCsc)+".txt"
//CONVERTIMOS EL PDF A CADENA DE TEXTO BASE 64
fMimeEnc( rutaPDF, rutaTXT )
cText := MemoRead( rutaTXT )
cText := STRTRAN(cText,CRLF,'')
Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com
[ Embarcadero C++ 7.60 for Win32 ] [ FiveWin 23.07 ] [ xHarbour 1.3.0 Intl. (SimpLex) (Build 20230914) ]
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com
[ Embarcadero C++ 7.60 for Win32 ] [ FiveWin 23.07 ] [ xHarbour 1.3.0 Intl. (SimpLex) (Build 20230914) ]