Access files from different projects

661 Views Asked by At

I have 2 projects , one is web application and another is WPF. In my web application I have a upload page to allow users to upload their files. I used Server.MapPath(@"~/something/") for the directory, but how do I retrieve that file in my WPF application ?

I can retrieve by typing the full path C:/programfiles/projects ... etc , but I am retrieving the directory from the database and in the database it reads like that ~/something/filename.jpg .

How to access the file with only ~/something/filename.jpg ? There is an error saying path does not exists unless I type the full path in but i don't want that .

0

There are 0 best solutions below