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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Create zip file from b...
Power Apps
Answered

Create zip file from base64string

(0) ShareShare
ReportReport
Posted on by 49

Hi all,

 

I have a requirement where I need to create zip file from a base64string returned from an external api and upload to SharePoint. I am using Power Automate. Is there a way to do the same?

Categories:
I have the same question (0)
  • Verified answer
    Sundeep_Malik Profile Picture
    6,499 on at

    Hey @SShivi 

     

    You can use Power Automate Desktop for this.

    Power Automate Desktop has option to convert base64 file to text. Then you can zip the file and save it to sharepoint.

    Sundeep_Malik_0-1684144855477.png

     

    Sundeep_Malik_1-1684144873355.png

     

    And then save it in sharepoint.

     

     

    With Power Automate Cloud Flow its a little difficult, but you can give it a try:

     

    First get the file and save it like this :

     

    {
    "$content-type": "application/pdf",
    "$content": base64returnedfromAPI
    }

     

    Follow the below links how to do that in cloud flow:

     

    https://www.tachytelic.net/2021/07/power-automate-create-zip-file/

    https://powerusers.microsoft.com/t5/General-Power-Automate/How-to-convert-base64-file-into-docx-pdf-file/td-p/912759

     

    I hope this helps 🙂

     

     

  • SShivi Profile Picture
    49 on at

    @Sundeep_Malik ,

    Thank you so much for the suggestion. I passed the file content in the format that you mentioned, making a small change as below and it worked.

    {
      "$content-type""application/x-zip-compressed",
      "$content""base64returnedfromAPI"
    }

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 Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 493 Most Valuable Professional

#2
11manish Profile Picture

11manish 479

#3
Haque Profile Picture

Haque 328

Last 30 days Overall leaderboard