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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / download a file using ...
Power Apps
Unanswered

download a file using its base64 string

(0) ShareShare
ReportReport
Posted on by
Hello everyone, I am having trouble with a canvas app I need to implement. 
I want to implement the following functionality:

1. Canvas app that is embedded inside Dynamics 365 model driven app, which retrieves some files from azure blob storage and downloads them.
2. I can only use Microsoft Entra ID authentication in my app for authenticating Azure Blob Storage, and I say this because the connector for Azure Blob Storage has some limitations, and one in particular is that I cannot use AzureBlobStorage.CreateShareLinkByPath(), which is exactly what I needed but is not possible.

What I am currently trying is to also connect a flow that runs when I click a button on the app, in the flow I am making HTTP call using azure blob storage API, and I actually get the file content I need in the flow, as shown in the screen shot below:



The file is in the filecontent variable which I am returning to the canvas app.

For context this is the actual variable. 
 
{
  "filecontent""UEsDBBQABgAIAAAAIQDfpNJsWgEAACAFAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAACAAAAAAAAAAAAAAAAAA......
}
The string is actually huge I am only inputting the start of it.

After I return this is my app, I was trying to download it:

1. I tried Set(downloadLink, "data:application/octet-stream;base64," & filecontent), and then Launch(downloadLink)
2. I also tried Launching the filecontent as it is.

I also tried the Download function as well, but I got an error saying Invalid URL.

What I have noticed is that the filecontent variable that is returned from my flow, is nothing like the string I get when checking the flowruns (as shown in the screenshot above)
What I get in the canvas app is this: 
appres://blobmanager/4365b7f839f94989a9e6e10d68fe0572/1
I am not sure if I can use this to download the file. 

Any help is appreciated. 
 
I have the same question (2)
  • Srini007 Profile Picture
    3,453 Super User 2026 Season 1 on at
    Hi,
     
    First, validate that the Base64 string you're getting is correct. You can search for "Base64 to file" on Bing, then paste the entire Base64 string to check if it converts properly.
    If the file is very large, it's better to use Power Automate "Create file" action, and then use SharePoint actions to download the file.
     
    Check below link for your reference
     
     
     
    If I have answered your question, please mark it as the Answered. If you like my response, please give it a Like.
    Regards,
    Srini
     

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

#2
Kalathiya Profile Picture

Kalathiya 211 Super User 2026 Season 1

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 195

Last 30 days Overall leaderboard