web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Not getting the right ...
Power Automate
Unanswered

Not getting the right base64 output string

(0) ShareShare
ReportReport
Posted on by 19

I have a PowerApps V2 connector that takes in file as an input (image to be specific). The "File Content contentBytes" output of this connector comes out with correct base64 encoding but I having issues passing this to 'Create item' SharePoint connector where the purpose is to create a list item and save this base64 string to a field in a list. The output of the 'Create item' connector in the 'ImageURI' is not correct. Please see below images.  

BuzzityBuzz_0-1689971561387.png

The above File Content contentBytes is what I want to save in the SharePoint list. 

BuzzityBuzz_1-1689971686496.pngBuzzityBuzz_2-1689971726022.png

Above two images is of the SharePoint connector. First one is of the Input section and the other is Output where you can see the ImageURI field is not correct. 

 

I hope I have provided information. Any help or suggestion is highly appreciated. 

Categories:
I have the same question (0)
  • BuzzityBuzz Profile Picture
    19 on at

    @Pstork1 any suggestions?

  • NickMerrick Profile Picture
    419 Super User 2024 Season 1 on at

    In Sharepoint, you trying to save it as a base64 value or as a file?

  • BuzzityBuzz Profile Picture
    19 on at

    base64 value in a multi line text field. 

  • NickMerrick Profile Picture
    419 Super User 2024 Season 1 on at

    Set a string variable to the value you want, the create or update item with that variable. Should work just fine. Also for it to be readable, be sure to add 

    data:image/jpeg;base64,

    before the Base64 string, as otherwise powerapps image wont read it, and you can save it as a jpeg, or change jpeg to png if that's the format you want. 

  • BuzzityBuzz Profile Picture
    19 on at

    Trying to take in the input from the PowerApps V2 connector to init a variable and the value comes out to be like this. I am passing triggerbody()['file']['contentBytes'] in the value of Initialize variable connector.

    BuzzityBuzz_0-1689977558414.png

    BuzzityBuzz_1-1689977667460.png

     

  • BuzzityBuzz Profile Picture
    19 on at

    I tried adding the string in front of the it but it still gives me a gibberish output. 

    BuzzityBuzz_0-1689982302835.png

     

  • NickMerrick Profile Picture
    419 Super User 2024 Season 1 on at

    I mean, yea, base64 is a string of text, if you want to add it as an attached file thats different and cannot be stored in a multiline column.

  • BuzzityBuzz Profile Picture
    19 on at

    I do not want to store it as a file. All I want is to store the base64 text into a multiline text column that is an output of the Powerapps connector which takes the image file as an input. I hope this clears a bit. 

  • Verified answer
    BuzzityBuzz Profile Picture
    19 on at

    Fixed it by myself. 

    BuzzityBuzz_0-1690002740538.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard