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)
  • Suggested answer
    Tom_Gioielli Profile Picture
    2,303 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.
  • 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);
     
     
     

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 169

#2
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 65

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 63 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans