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 the im...
Power Apps
Unanswered

How to download the image from the image data type column in dataverse

(4) ShareShare
ReportReport
Posted on by 142
Hi,
 
I have a dataverse table that has Image data type column, in my canvas app I want to be able to download it. I have this method https://www.matthewdevaney.com/power-apps-download-file-from-dataverse-file-column/ but not successful as I am having AccessDenied error.
 
Does Power Apps or Power Automate have any other method to create a download link then push it back to the canvas app so user can download it using the Download() function?

TYIA!!
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at
    Hi @PPDEV
     
    It is super super important to understand we cannot see your code, so we cannot tell you what is wrong.
     
    Please share your code (not the link from someone else). Then walk us through your code, and show us the part that is failing and how you execute it.
     
    Without seeing your code, it's not good to try to throw other things out when we do not know what's wrong with what you have.
     
    Cheers!
  • PPDEV Profile Picture
    142 on at
     
    Please see the code I'm currently using:
    UpdateContext({locClientEnvURL: LookUp('Environment Variable Values', 'Schema Name' = "ps_ClientEnvironmentURL").Value});
    
    Download($"{locClientEnvURL}/api/data/v9.2/ps_vehicledatabases({gloAsset.'Vehicle Database'})/ps_vehicleimage/$value"
    )

    In this implementation, I’m referencing the Environment URL from the Power Platform Admin Center, the Dataverse table name, the item's GUID, and the logical name of the image column.

    Initially, I encountered an HTTP 401 error, which I resolved by adding a Link control that says:

    "Issue with 401 error? Click and sign in here."

    This link redirects users to the Environment URL to prompt sign-in.

    However, when the download is triggered, instead of retrieving the image file, it downloads a text file. I've attached the downloaded file for your reference.

    Appreciate your help on this—thanks in advance!

  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    You are using an image column not a file column as in your example. If it works as in the example provided it will probably just show as binary data,
  • Verified answer
    MS.Ragavendar Profile Picture
    4,977 Super User 2025 Season 2 on at
     
    Matthew Devaney blog describes how to download from the column file but our need is image.
     
     
     
    🏷️ Please tag me @MS.Ragavendar if you still have any queries related to the solution or issue persists.
    Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.
  • Suggested answer
    CA1105 Profile Picture
    545 Super User 2025 Season 2 on at
    +1 for @PPDEV solution.
  • PPDEV Profile Picture
    142 on at
    Hi @MS.Ragavendar, thank you for your reply. It worked!! Appreciate your help.
     
    @CA1105 - kindly follow the blog shared by @MS.Ragavendar :)
     
    Thank you guys!
  • Verified answer
    MS.Ragavendar Profile Picture
    4,977 Super User 2025 Season 2 on at
     
    glad it worked!
     
    Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.

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