How can I download a file and store it on the web server. I have a
complete
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 said:
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 said:
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
-------------------------------------------------------
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