Re: manually Send file to client
From: Marina (someone_at_nospam.com)
Date: 01/12/05
- Next message: Jim: "Re: Calling parent methods from a child"
- Previous message: Terry: "Re: Send HTML Email from ASP.NET"
- In reply to: wackyphill_at_yahoo.com: "manually Send file to client"
- Next in thread: wackyphill_at_yahoo.com: "Re: manually Send file to client"
- Reply: wackyphill_at_yahoo.com: "Re: manually Send file to client"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 12 Jan 2005 16:17:55 -0500
You can use Response.WriteFile to write any file on the server out to the
client. So if the file is outside the virtual directory, WriteFile will
write it out just fine, but the user would have no way of specifying a URL
for it, since it will be outside the virtual directory.
<wackyphill@yahoo.com> wrote in message
news:1105564487.576317.324950@c13g2000cwb.googlegroups.com...
> Is there a way to code it so that you can transmit a file to a client
> programatically so that you could send it a file that is not part of
> your website?
>
> Like if my site is in c:\inetpub\mySite
>
> Is there a way I can use like FileStream and read in a file from c:\
> and then somehow transmit it to the client. (Purpose being to force the
> user to go thru the website to access files and stop someone from
> directly putting the url of the file they want to download in the
> address bar)
>
> I'm not sure how to transmit the data to the client though. Any ideas?
> Thanks very much.
>
- Next message: Jim: "Re: Calling parent methods from a child"
- Previous message: Terry: "Re: Send HTML Email from ASP.NET"
- In reply to: wackyphill_at_yahoo.com: "manually Send file to client"
- Next in thread: wackyphill_at_yahoo.com: "Re: manually Send file to client"
- Reply: wackyphill_at_yahoo.com: "Re: manually Send file to client"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|