Re: manually Send file to client

From: Marina (someone_at_nospam.com)
Date: 01/12/05


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.
>



Relevant Pages

  • Re: The old topic: Session variables desappear.
    ... Professional VSTO 2005 - Wrox/Wiley ... I even wrote a log file to see before page_load and after page_load, ... How can a client side SPECIFIC page, decide to clear the server side ... Recreate the virtual directory. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Multi-process server
    ... Your listener service, when accepts a new client, creates in IIS a new ... You have to figure out when and how to delete that virtual directory, ... > a) Each dynamically created process must be configured to a new port number. ... > c) I will still have to have a monitor server process that will direct a new client to an available virtual directory. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: IIS error with .com in virtual directory name
    ... IIS rejects the client request with a 403.1 error - ... execute access forbidden. ... IIS seems to think that the virtual directory name ... > - In Internet Services Manager right click on the virtual directory, ...
    (microsoft.public.inetserver.iis)
  • Re: IIS and client certificate
    ... You could create a second virtual directory and point it ... For internet I would secure witch client certificate. ...
    (microsoft.public.inetserver.iis.security)
  • manually Send file to client
    ... Is there a way to code it so that you can transmit a file to a client ... user to go thru the website to access files and stop someone from ... address bar) ...
    (microsoft.public.dotnet.framework.aspnet)

Loading