Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying files from the network.

Status
Not open for further replies.

chebbi

Programmer
Feb 6, 2002
98
IN
Hi all

Here's my scenario:

I have a web application(Internet website not intranet or extranet) which needs to show a pdf file sitting in our network. We donot want the user to see the path for the pdf nor is making the folder where pdf resides a virtual directory a option.

Having said that what are my options?

I created a console and windows application and tried accessing this file and it works fine(I used System.io namespace for this) but when i use the same code in my web application i get username or password error. Iam not sure if web application running as aspnet user has to be given some privilages to access files on network. If anyone has thoughts on this please respond.

Badrinath Chebbi
 
hi,

It has been a really long time since I have this but you could make a http response stream and stream the file contents into that stream.

I do not remember the specifics sorry

Bassguy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top