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

Announcements

No record found.

News and Announcements icon
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)
  • Suggested answer
    Tom_Gioielli Profile Picture
    3,084 Super User 2026 Season 1 on at
    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.
  • Syed Waqas Nabi Profile Picture
    11 on at
    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);
     
     
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
11manish Profile Picture

11manish 156

#2
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans