How can convert a file(image) into base64 string

Hello all,

I have a file(image) and i wsnt to convert it to base64 string to save it into table in database. So any one can guide me a way or kindly give me a sample. Thanks so much.

Best Regards,
PHV

@phihoanvu

Welcome to the UIpath Community.

Please check below thread for your reference and use Invoke Code Activity to write VB.net code

https://www.aspsnippets.com/Articles/Convert-Image-file-to-Base64-Encoded-string-in-C-and-VBNet.aspx

1 Like

Hi @phihoanvu

Use assign activity and try

Assign strvar=Convert.tobase64 string(image)

And check it

Thanks
Ashwin.S

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.