PDF to binary

PDF to binary

Postby mtajkov » Mon Nov 08, 2021 12:27 pm

Hi,

How to convert pdf file to binary (encode Base64)?

Regards,
Milos
Best regards
Milos

[ FWH 21.11 ] [ xHarbour 1.2.3 Intl. (SimpLex) (Build 20150603) ]
mtajkov
 
Posts: 130
Joined: Sun Mar 08, 2009 4:33 pm

Re: PDF to binary

Postby leandro » Tue Nov 09, 2021 6:44 am

Una idea
Code: Select all  Expand view

local rutapdf := ".\pdfs\archivo.pdf"
local rutaTXT := ".\txts\archivo.txt"

//CONVERTIMOS EL PDF A CADENA DE TEXTO
fMimeEnc( rutaPDF, rutaTXT ) //Lo encripta en base64
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) ]
User avatar
leandro
 
Posts: 1669
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 24 guests