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 / How to download Base64...
Power Apps
Unanswered

How to download Base64 file type in canvas app

(0) ShareShare
ReportReport
Posted on by 1

Hello All,

I'm developing a app which has a functionality of downloading any file chosen.

But I'm Facing issue with download function on Mobile as well as on tablet (I do have a launch function which is working but I want to use it has a backup).

So I'm trying to get something out of Base64 String.

So I'm getting base64 string of any file type, So my question is How to Download a file having it's Base64 string?

 

Best Regards

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @Abhishek_Shinde ,

     

    You need to generate an actual file somewhere, like in OneDrive or SharePoint library, then you will be able to use Download() function. The Download function only accepts URLs as input parameter.

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • Joseff Profile Picture
    37 on at

    I was looking for an answer to this and couldn't find anything.

    After messing around in PowerApps a bit it turns out if you create an attachment control and set the items similar to below it will download straight from the control:

     

    [{DisplayName:"data.svg",Id:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDQ4IDIwNDgiPjxwYXRoIGQ9Ik0xNjY0IDE1MzJsMTI4LTEyOHY2NDRIMTI4VjBoMTExNWw0OTkgNDk5cS0zNSAxMS02MCAyM3QtNDggMjgtNDIgMzYtNDQgNDRsLTEwIDEwaC0zODZWMTI4SDI1NnYxNzkyaDE0MDh2LTM4OHpNMTI4MCA1MTJoMjkzbC0yOTMtMjkzdjI5M3ptNTY4IDEyOHE0MiAwIDc4IDE1dDY0IDQyIDQyIDYzIDE2IDc4cTAgMzktMTUgNzZ0LTQzIDY1bC03MTcgNzE5cS03IDItMzcgOXQtNzEgMTgtODkgMjItODYgMjItNjYgMTYtMjggN0gzODR2LTEyOGg1NDRsNjItMjQ5IDcxNy03MThxMjgtMjggNjUtNDJ0NzYtMTV6bTUxIDI0OXEyMS0yMSAyMS01MSAwLTMxLTIwLTUwdC01Mi0yMHEtMTQgMC0yNyA0dC0yMyAxNWwtNjkyIDY5NC0zNCAxMzUgMTM1LTM0IDY5Mi02OTN6IiBmaWxsPSIjMzMzMzMzIj48L3BhdGg+PC9zdmc+"}]
     
    Joseff_1-1691506472922.png

     

     
    Joseff_0-1691506384026.png

     

    Edit:
    After looking at this and using it a little more one thing to be aware of is the Name and Value in the controls advanced settings:

    Joseff_0-1691512591556.png

    I found that mine kept defaulting the Value back to DisplayName which wont work so you just need to make sure these are set correctly

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 739 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 268

Last 30 days Overall leaderboard