Hi All,
How can I easily convert base64 string to image in uipath using activities.
@loginerror @sudheern @Pablito @AndyMenon
Thanks,
Devashish
Hi All,
How can I easily convert base64 string to image in uipath using activities.
@loginerror @sudheern @Pablito @AndyMenon
Thanks,
Devashish
Hi,
How about the following expression?
img = New UiPath.Core.Image(Convert.FromBase64String(strBase64))
note: img is UiPath.Core.Image
Regards,
In Invoke Code activity (C#)below code also worked:
String filePath = "MyImage.jpg";
File.WriteAllBytes(filePath, Convert.FromBase64String(base64imageString));
@Yoichi Thank you so much
Hi,
Even if we don’t know type of the image (such as png, jpg etc), contractor of UiPath.Core.Image can handle it properly and it can be saved as any image type using Save Image activity.
I think it’s useful in the above case, for example.
Regards,
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.