Answers for "not allowed to load local resource html image"

0

Not allowed to load local resource:

in my case (laravel), place your assets to public folder instead.
Posted by: Guest on September-14-2021
-1

not allowed to load local resource html image

sending tag <img src="c:\images\mypic.jpg"> would cause user browser to access image from his filesystem. if you have to store images in folder located in c:\images i would suggest to create an servlet like images.jsp, that as a parameter takes name of a file, then sets servlet response content to an image/jpg and then loads bytes of image from server location and put it to a response.

But what you use to create your application? is it pure servlet? Spring? JSF?

Here you can find some info about, how to do it.
Posted by: Guest on March-04-2021

Browse Popular Code Answers by Language