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,501 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard