convert from physical path to virtual path

后端 未结 3 1058
野性不改
野性不改 2020-12-15 21:36

I have this function that gets the fileData as a byte array and a file path. The error I am getting is when it tries to set the fileInfo in the code bewlo. It says \'Physica

3条回答
  •  误落风尘
    2020-12-15 21:41

    I take it that your project is located at:

    E:\WEBS\\webapp\
    

    You should try and use relative references to your images e.g.

    ..\default\images\mains\myimage.jpg
    

提交回复
热议问题