Link to home
Start Free TrialLog in
Avatar of justaphase
justaphaseFlag for Portugal

asked on

file (PDF) to base64 string

Hello Experts,

I need to transform a pdf file into base64 string to put inside a XML code.
I can i do this?

I tried this, but i don't if it's right:
mystr= FILETOSTR( "c:\myfile.pdf")
mybase64_str = STRCONV( mystr, 14) 
msg(mybase64_str)

Open in new window


Can't someone help me?

Thx in advanced,
Miguel
ASKER CERTIFIED SOLUTION
Avatar of Pavel Celba
Pavel Celba
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of justaphase

ASKER

msg() is a custom function on our software :)

Thx Pcelba!