Can I get an image of any directory on my PC to put on my HTML page?

Asked

Viewed 57 times

1

Can I get an image from any directory on my pc, or can I just grab images from the project directory? I am using JSF:

h:graphicImage url="C:\teste\rcvp\18\04\20\16\372_180420160013_0000000_1.jpg" />

1 answer

4


Yes you can! Only if you want to put the site in the cloud no one will be able to see.

'What is indicated is: put everything in a folder, inside it, put your index.html, then create a folder for css, one for images and so on...

  • I believe that putting the project on the web or else localhost to test the layout of the folders is better and more promising, look also some article of good practices of indexing files and folders for web

Browser other questions tagged

You are not signed in. Login or sign up in order to post.