Solved

Azure file storage image in Devexpress

  • 13 January 2023
  • 4 replies
  • 86 views

Userlevel 6
Badge +3

Hi, 

We would like to embed an image in DevExpress from our Azure File Storage. DevExpress doesn't seem to like it though. It handles Blob files without a care in the world.

Anybody that knows of a possible solution?

Thanks!

icon

Best answer by Mark Jongeling 13 January 2023, 16:41

View original

This topic has been closed for comments

4 replies

Userlevel 7
Badge +23

Thanks for sharing the solution Rony! Glad it works

Userlevel 6
Badge +3

I got it working with above method.

Image URL: The url to the filestorage (https://storage.file.core.windows.net/images/ for example)
 


Expression: The parameter containing the url to the image + the generated SAS token for that specific storage/container/fileshare 

 

 

Userlevel 6
Badge +3

Will try this out asap and report back with my findings!

Userlevel 7
Badge +23

Hi Rony,

Maybe it's possible to add a Picture box to your Report and submit the URL to obtain the file inside the Image URL property. The authentication can be done using a SAS-token I believe, allowing you to access the file without having to log in. Link: https://learn.microsoft.com/en-us/azure/storage/common/storage-sas-overview

Picture box in Report designer

Again, I do not have the means to test this out but it's worth a shot I think.

Hope this helps!