Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

Currently i am working in a project which is based on layered architecture so basically admin panel is one project and user panel is another project,

but the problem is that admin upload some images which stored in a folder of admin project but the uploaded images also shown in user panel which is other project in same solution.

So,how can i access the image folder of admin project from user project in same solution with the image name which is stored in database.

Thanks in advance.
Posted

1 solution

1.If "admin project" is a web application and "user project" is a 2nd web application, you cannot access the folder from the 1st application in the 2nd application and viceversa.

One solution for this case is to store the files in the database, saved in field of type "image", and not in the folder.

2.If both projects are part of the same web application you can access the folder by using path that are relative to the web application root, like the next example: "~\SomeSubFolder\DocFolder".
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900