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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

I have question how to convert base64 string to Binary or File type

(2) ShareShare
ReportReport
Posted on by 11
I am looking to send image multipart/form-data to external API . The external API expecting file so I am creating content of it but I am facing problem with it. Anyone has done similar thing? 
Categories:
I have the same question (0)
  • Syed Waqas Nabi Profile Picture
    11 on at
    I have question how to convert base64 string to Binary or File type
    This is my code I am using Base64 convert code unit to convert base64 string to outream then to instream but I always get error message":"multipart: NextPart: EOF","warning
     
     if Image then begin
                Boundary := '----WebKitFormBoundaryazjsjwikwllwWeWl';
                ShopifyUtil.Base64StringToInStream(InData, InStream);
                Content.WriteFrom(InStream);
                Content.GetHeaders(Header);
                Header.Clear();
                Header.Add('Content-Disposition', 'form-data; name="image"; filename=' + ExtraData);
                Header.Add('Content-Type', 'multipart/form-data; boundary=' + Boundary);
     
     
     
  • Suggested answer
    Tom_Gioielli Profile Picture
    2,020 Super User 2025 Season 2 on at
    I have question how to convert base64 string to Binary or File type
    There are functions for this in Power Automate, so you can always do the conversion in Power Automate and store it somewhere in Dataverse on your table for your API to grab it.
     
    There is a Base64toBinary() function in the formula portion of Power Automate that you can use for free.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
DAnny3211 Profile Picture

DAnny3211 433

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 137 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 67 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans