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,


Welcome to the UIpath Community.

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

1 Like

Hi @phihoanvu

Use assign activity and try

Assign strvar=Convert.tobase64 string(image)

And check it


1 Like

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