CMIMEENC (pdf-file to mime)

Post Reply
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

CMIMEENC (pdf-file to mime)

Post by Marc Vanzegbroeck »

Hi,

A want to add a PDF-file into a xml-file with mime (base64) encoded.
How can I add this?
If I use

Code: Select all

CMIMEENC('C:\Users\Marc\Documents\Factuur 20210005.pdf')
then the text 'C:\Users\Marc\Documents\Factuur 20210005.pdf' is converted.
Can I use memoread()? Does this also read the special characters of PDF-file?
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
User avatar
Giovany Vecchi
Posts: 129
Joined: Mon Jun 05, 2006 9:39 pm
Location: Brasil

Re: CMIMEENC (pdf-file to mime)

Post by Giovany Vecchi »

Use

cResult := Hb_base64Encode(Hb_MemoRead('C:\Users\Marc\Documents\Factuur 20210005.pdf'))
Post Reply