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 / Download blob from azu...
Power Apps
Suggested Answer

Download blob from azure blob storage using Azure REST API from Powerapps

(0) ShareShare
ReportReport
Posted on by 280
I am trying to download blob from azure blob storage using Azure REST API from Powerapps. I am providing blob name as the parameter to azure "Get Blob" operation but it is returning the actual content to powerapps. How to download the blob using the content? I am using Entra ID for authorization. Copilot tells me to use Launch("data:application/pdf;base64," & pdfResponse["$content"]) but this is not working.
 
"body": {
        "$content-type": "application/pdf",
        "$content": "{base64 content}"
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,493 Super User 2025 Season 2 on at
     
    Launch and Download are 2 different things. (but please do not post in 2 different places, its hard enough for us few to answer questions, without double posts).
     
    1) you should share not just some code you tried to get from Copilot, but everything you are doing, as we don't know what pdfResponse even is.
     
    2) are you sure (just checking) its base 64 content encoded already? (very possible, but I don't know how you put it there).
     
    That all being said, you should just be able to use a SAS Token, with the URL to the blob file. That is what I would recommend.
     
    I would then decide whether you want to download it or Launch, where launch requires a mime type in your browser bla bla.. Download tries to download it.
     
    Slightly different activities.
     
    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.
    Thank you!
    Sincerely, Michael Gernaey
  • Suggested answer
    Power Platform 1919 Profile Picture
    1,898 on at
    Hi @rohitsbots,
    the workaround what i use generally is (Power Automate Way):
    1. Prepare your inputs to pass to flow as Input parameters
    2. Get the file content for selected azure blob (binary content)
    3. Then use Onedrive connector to create a file with the fetched content
    4. Then generate a share link for the newly created file 
    5. Send the generated link back to power apps (use download /launch function Along with ?download=1 to force download)
    6. add a delay of 30 seconds or upto 5 min and delete the file.

    I always use this workaround if I have to download anything to power apps.


    And as @Michael E. Gernaey mentioned, please try to keep your query in single post instead of multiple posts.

    Please give the mentioned solution a try and let me know whether it works for you.
    If it solves your issue, feel free to mark this thread as answered.
    Please make sure to like the response!
    Thanks!
    - Hemanth Sai

  • Michael E. Gernaey Profile Picture
    53,493 Super User 2025 Season 2 on at
     
    I believe this one maps to our other issue with your expression is in double quotes and shouldn't be.

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard