Forum Discussion
catoriana
9 years agoRegular Visitor
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
- catorianaRegular 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".
- v-chuncz-msftCommunity Support
What is the image used for? It seems a relative path issue. You may follow the debugging guide to debug your custom visual.
- ngann93Frequent Visitor
Hi
I have the same problem ... How should we solve the relative path issue.
- MawashiKidResolver IIYou 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.