Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
SaraAbdelazim
New Member

Display base64 Image in a Table -- Direct Query

I have an SQL database with a table of employees and a column of photos.
I used SQL query and created a new column (Photo) to store the Base64-encoded image data it's origionally in (Binary format).
I used this apprach :
* EmployeePhoto binary data from DimEmployee is cast as VARBINARY(MAX)
* CAST AS XML and xs:base64Binary
as suggested here by: @Lyssillic | Answer Display images from SQL Server database DirectQuery model 

 


I'm using DirectQuery Mode and the data is loaded successfully. (Power Query image below)
When I try to use the Photo column to show the images in a table in a report I get "Can't Load data for this visual"

 

Note: It works fine with images visualization or filtered table by single name (image below) BUT I wanted a table of all employees details+images 

Base64 images from SQLBase64 images from SQLProblem when using photo column in report pageProblem when using photo column in report pagesingle value in image visual or filtered tablesingle value in image visual or filtered table

 

 

 

2 REPLIES 2
SaraAbdelazim
New Member

I did, as I mentioned I am able to display a single image if filtered by name. The problem is I can't display all of them..

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors