what is the max size of bytes allowed in base64ToString()

Anonymous
2022-11-24T13:54:56.48+00:00

I used base64() function and tested with 2400 bytes and this works fine and returns the encoded version of the string as expected.
I need to decode the message using base64ToString(PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGlu). and this returns "<?xml version="1.0" encodin" bytes size is 36 bytes
However, this base64ToString(PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZ) returns an error when the string size is 37 bytes
What are the max bytes allowed to use in base64ToString()? why is there a limitations in base64ToString()?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2022-11-25T06:17:56.94+00:00

    @Anonymous Thanks for reaching out. I couldn't observe the same behavior at my end. I have tested which this data while is more than 5KB data and couldn't observe any issue. The max size would be the maximum size of string in C#. Can you share your workflow and how you have initialized the value and in which field you are saving the converted value. In case if your encoded string is invalid that the base64ToString function will through the error that "The value cannot be decoded from base64 representation"

    264152-image.png

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.