Forum Discussion

catoriana's avatar
catoriana
Regular Visitor
9 years ago

Adding Images to my Custom Visuals Project

How do you add static images to a Custom Visual using the new Developer Tools?

I have added the images I want to use under the "assets" folder in my project,  however when running my custom visual through the Power BI online service I get the "404 resource not found" error.

 

4 Replies

  • catoriana's avatar
    catoriana
    Regular Visitor

    How can I add static images to my custom visual project using the new Developer Tools?

    I have added the images under the "assets" folder however when running my Custom Visual in Node.js I get the following "404 resource not found error".

     

     

    • ngann93's avatar
      ngann93
      Frequent Visitor

      Hi 

      I have the same problem ... How should we solve the relative path issue.

  • You may take a look at Jon Gallant blog on
    Power BI Custom Visual Tip: How to Render an SVG or PNG

    http://blog.jongallant.com/2016/12/powerbi-custom-visual-svg-png/

    I've tested both approaches and confirm that both work fine with svg and png. Even added a svg vector sample I created in the blog comments. This was mainly for testing as drawing contains more than 15,000 lines of svg code and always appeared in a snap.