Re: Downloading files



> How can I download a file and store it on the web server. I have a
> complete
> > URL to the file
I am even more confused now. If you have a path to a file, then file must
necessarily exist on server disk otherwise it is a memory mapped file and
exists in server memory. Assuming the former, do you intend to move the file
from one directory to another? Then, simply write the file to the directory
using one of the methods of the System.IO filestream class.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



"Shawn" <bossman100@xxxxxxxxxxx> wrote in message
news:ejCwy5wsFHA.2348@xxxxxxxxxxxxxxxxxxxxxxx
> Maybe you misunderstood me. Or maybe I misunderstood you :-)
>
> Anyway, what does contenttype have to do with this? I'm not talking about
> forcing a download to a client. In fact, clients are not downloading these
> files at all. The files are to be stored on the web server.
>
>
>
> Shawn
>
>
>
> "Alvin Bruney - ASP.NET MVP" <www.lulu.com/owc> wrote in message
> news:Oky4ScwsFHA.912@xxxxxxxxxxxxxxxxxxxxxxx
> > do a google on contenttype, there are several code examples of file
> > downloads in .NET
> >
> > --
> > Regards,
> > Alvin Bruney [MVP ASP.NET]
> >
> > [Shameless Author plug]
> > The Microsoft Office Web Components Black Book with .NET
> > Now Available @ www.lulu.com/owc
> > Forth-coming VSTO.NET - Wrox/Wiley 2006
> > -------------------------------------------------------
> >
> >
> >
> > "Shawn" <bossman100@xxxxxxxxxxx> wrote in message
> > news:#M6sTVwsFHA.2968@xxxxxxxxxxxxxxxxxxxxxxx
> > > Hi.
> > > How can I download a file and store it on the web server. I have a
> > complete
> > > URL to the file, but I never know what kind of file it is. It can be
> pdf,
> > > jpg, tif, doc, xls etc.
> > >
> > > Thanks,
> > > Shawn
> > >
> > >
> >
> >
>
>


.



Relevant Pages

  • Secure downloadable PDF files
    ... I would like to know the best place to store pdf files for download. ... if the web server lives in the perimeter network then storing all the files ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Downloading files
    ... Shawn ... > store it on my own web server. ... >>> How can I download a file and store it on the web server. ... >>> forcing a download to a client. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Suggestions on creating a File Download area
    ... > I'm in the process of setting up a web site that will allow users to ... > towards having a download area that users can log in to and simlply ... are outside the directories that the web server can access. ... or you could link the cleaning to logins. ...
    (alt.php)
  • Re: Suggestions on creating a File Download area
    ... filename will be able to download the file without paying you anything. ... as the web server wouldn't go out of the /var/www/html ... A php script can read a file outside the document-root, ... use fpassthru() function, of course you can use any of the other file read ...
    (alt.php)
  • Re: OT: windoze woes and full rant mode is on
    ... If I try and download it to the client, ... EVERYTHING on the web server, then simply serve up a dynamically ... constructed page that suits the particular browser being used. ... I was really hoping Java would have taken off more than it did. ...
    (comp.lang.cobol)