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

Notifications

Announcements

Community site session details

Community site session details

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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard