String Query

Hii everyone,

I have an issue, I am using base64 encode method I am getting a code but when I am storing that to a variable it gives only half content and then …
But same thing when I am writing to TextFile it gives full content

I need to send the code in http request by storing it in a variable

Attached is the content stored in string variableContent Stored in a variable.txt (8.0 KB)

Attached is he content stored in a text fileBase64Encode.txt (31.9 KB)

How to solve this

Thanks and Regards,
Supriya

Hi,

How did you get the content of string variable?
If you got it from property value window on debug mode, there is limitation to display.
Can you check length of the string variable like strVar.Length?
Probably you can estimate it was omitted or not.

Regards,

To get the Content I used

fileContentsBase64 = System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(fileContents))

The full content is not being pasted in Http Request and is copied properly to text file

Hi,

If possible, can you share your workflow and/or data?
Dummy data is also OK if it can be reproduced.

Regards,

Hi,

TestData.zip (9.8 KB)
This is the test data

Regards,

Hi,

Workflow screenshot to get base64 code

Regards,

Hi,

Thank you for sharing.
Just a quick question.

Which activity do you use at “Read Mails”?

Regards,

Hi,

OUTLOOK MAIL MESSAGE activity

Regards,

Hi,

Thank you for your reply, but I cannot get your workflow yet.

In your screenshot, “Read Mails” seems Read Text File activity , is this “Outlook Mail Message”?
There is no activity to read .msg in UiPath.Mail.Activities Package. Do you use any other activities package?

Hii,

I am reading eml file using text file

Thanks and Regards,
Supriya