Welcome to the UIpath Community.
Please check below thread for your reference and use Invoke Code Activity to write VB.net code
Convert Image file to Base64 Encoded string in C# and VB.Net
Welcome to the UIpath Community.
Please check below thread for your reference and use Invoke Code Activity to write VB.net code
Convert Image file to Base64 Encoded string in C# and VB.Net