Forum Discussion

San_Raz's avatar
San_Raz
Frequent Visitor
2 years ago
Solved

Sharepoint/onedrive image url without Login credentials.

Hi all,
Numerous posts discuss how to display images in Power BI from SharePoint using URLs. However, these methods typically require users to have access to the files in SharePoint. As a result, for users without access, the images appear broken in their reports when shared. While storing the data in a public location is an alternative, it would be ideal to keep the images in SharePoint and ensure that all users with whom the report is shared can view the images, regardless of whether they have access to these image files or not.
Is there a way to do it?

  • The one workaround you can do here is if you can translate the images to base64, then pull that into your dataset, Power BI can display the image from the base64 code instead of pulling from the URL. The issue I run into is that the base64 code often exceeds the maximum character limit for fields... I think if your images are smaller, it can work though. There's a few videos out there on this on YouTube - here's a link to one of them: https://youtu.be/dPR46gEADBU?si=phIBCY6cLal-lMZB

4 Replies

  • christinepayton's avatar
    christinepayton
    Icon for Most Valuable Professional rankMost Valuable Professional

    The one workaround you can do here is if you can translate the images to base64, then pull that into your dataset, Power BI can display the image from the base64 code instead of pulling from the URL. The issue I run into is that the base64 code often exceeds the maximum character limit for fields... I think if your images are smaller, it can work though. There's a few videos out there on this on YouTube - here's a link to one of them: https://youtu.be/dPR46gEADBU?si=phIBCY6cLal-lMZB

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi San_Raz 

    The image url has the following limitation:

    The URL must be anonymously accessible, not on a site that requires a sign-in, such as SharePoint or OneDrive for work or school.

    You can refer to the following link.

    https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-images-tables#considerations

    So the best way is to put the image at a public website so that the user can see the image without any authentication.

     

    Best Regards!

    Yolo Zhu

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.