Adding local folder image in html templete

hello community, i have an html templete for message body . i have used base64image as well but image size is to large 1600x1600 so i am getting message that this message is too large can anyone help how to reduce the size of image to 200x200.

@dheerandra.vishwakarma

check the reference

1 Like

when it is about resizing the image

  • create an UiPath.Core.Image Variable from the base64 String
  • calculate the Scale Factor
  • scale the image
  • retrieve the new Base64 String

Variables:

Flow

Details:
myBigUiPathImage = new UiPath.Core.Image(strB64Big)
ScaleFactor = 200 / myBigUiPathImage.Height
strB64Small = myBigUiPathImage.Scale(ScaleFactor).Base64

1 Like

thank you for your suggestion

@dheerandra.vishwakarma
So can the topic be closed?
Forum FAQ - How to mark a post as a solution - News / Tutorials - UiPath Community Forum

1 Like

thank you i got the solution.

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