Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

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

(4) ShareShare
ReportReport
Posted on by 107
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!!
  • Suggested answer
    MS.Ragavendar Profile Picture
    2,115 on at
    How to download the image from the image data type column in dataverse
     
    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.
  • PPDEV Profile Picture
    107 on at
    How to download the image from the image data type column in dataverse
    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!
  • Suggested answer
    CA1105 Profile Picture
    469 on at
    How to download the image from the image data type column in dataverse
    +1 for @PPDEV solution.
  • Suggested answer
    MS.Ragavendar Profile Picture
    2,115 on at
    How to download the image from the image data type column in dataverse
     
    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.
  • ronaldwalcott Profile Picture
    3,810 on at
    How to download the image from the image data type column in dataverse
    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,
  • PPDEV Profile Picture
    107 on at
    How to download the image from the image data type column in dataverse
     
    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!

  • Michael E. Gernaey Profile Picture
    42,666 Super User 2025 Season 1 on at
    How to download the image from the image data type column in dataverse
    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!

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

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >