Home > Net >  Img tags reference projects outside the picture of the absolute path
Img tags reference projects outside the picture of the absolute path

Time:09-23


Take photos here is no photos when the default to a picture of the project, the other is directly through the method of load photo (photo is actually exist under a folder server), but the customer is to use network, network speed is very slow, so loading is very slow,
If we can directly from the server folder under this picture is the fastest, the baidu, for img SRC attribute assignment for file:///E:\\PhysicalImgPath\\\\642103198212161319_72664.jpeg, copy url into a browser to open, but the interface error
What is the method faster loading photos

CodePudding user response:

Copy image to the page where the folder, and then use relative path.

CodePudding user response:

1. Open the virtual file directory path physical path to the file
2. Remove the images to the root directory or static resource folder

CodePudding user response:

JS no permission to open the computer in the file, if you can open your file (download, modify, etc.), the moment you enter the site others can black on your computer,

CodePudding user response:

refer to the second floor wearing a treble response:
1. Open the virtual file directory path physical path to the file
2. Remove the images to the root directory or static resource folder

The positive solution,
Virtual directory to the folder,
  •  Tags:  
  • C #
  • Related