How to retrieve files/documents that are not found on the web server machine.

Posted by jhorton on Stack Overflow See other posts from Stack Overflow or by jhorton
Published on 2010-04-16T15:11:36Z Indexed on 2010/04/16 15:13 UTC
Read the original article Hit count: 227

Filed under:
|
|
|

I am trying to create an export feature for a user to be able to download documents into a zip file. I have the feature working when the files are located on my local and I can use an absolute path on my local. But after talking to the infrastructure team, I found out that the documents are not stored on the same machine as the web server but located at a server farm located off site. I can query the database which gives me a file path. But the path is more of a relative path.

So can anyone help me understand how to use FileInfo with getting files from another machine. I believe the infrastructure team said there is a virtual drive set up to the outside server. Am I able to use a virtual path some how? Thanks.

© Stack Overflow or respective owner

Related posts about c#

Related posts about directory