473,387 Members | 1,501 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

problem with webclient.downloadfile method

I want to download a file from my webapplication to client computer.I am
trying this method but this is just copying the file from one location to
anothor on server only,.

Any help is appreciated.
Thanks
Purva
Dec 30 '05 #1
4 1431
I think you need to tell us a bit more of what you wanna do here?
You can just add a link on the webpage to your file and the user can
then download the file, but I guess I'm stating the obvious.
Do you automatically wanna download a file. That would be a bit more
tricky and only works with ActiveX or something along thoses lines.

Remy Blaettler

Dec 30 '05 #2
Thanks Remy for ur response.

Actually I need to copy some files from server to client machine to help the
user drag and drop these files to some other software. So I want that there
will be one fixed folder on client machine where we can download the files
from our web application and will browse the files from there so that he can
drag and drop the files to other software.

Can u help me.Thanks in Advance
Purav
"Remy" <rb********@hotmail.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
I think you need to tell us a bit more of what you wanna do here?
You can just add a link on the webpage to your file and the user can
then download the file, but I guess I'm stating the obvious.
Do you automatically wanna download a file. That would be a bit more
tricky and only works with ActiveX or something along thoses lines.

Remy Blaettler

Dec 31 '05 #3
Hello Purva,
I want to download a file from my webapplication to client computer.I
am trying this method but this is just copying the file from one
location to anothor on server only,.


WebClient.DownloadFile() downloads the file to the local filesytem. If you
download a file in server-side code and need to stream that back to a client
machine, you have to implement that last step yourself.

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Jan 1 '06 #4
Without ActiveX or maybe Java (not 100% sure) its not possible to just
download file automatically from the internet.

Remy

Jan 3 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: James Write | last post by:
Hi, I am using the webclient.downloadfile() method to download a file from a remote web server to the local harddrive. public CopyFile(string sSrcPath, string sDestPath) { WebClient oClient...
1
by: Cheri Elkin | last post by:
I recieve the following error when attempting to download a file from our web server to be placed on our hard drive. Any clues as to why I would get this error? By the way, the directory already...
0
by: Micky | last post by:
Hi, I have a problem with System.Net.WebClient.DownloadFile() method used in an aspx page. The error is: The underlying connection was closed: Unable to connect to the remote server. If I...
8
by: DEWright_CA | last post by:
Why does WebClient.DownloadFile loose my completed path? Ok, I have a function in my app then when my button is clicked it checks to see if the files come from a local drive or a http address....
1
by: peter.rietmann | last post by:
I have been suddenly having a performance problem downloading images from one server (productive) to another (productive) using the following code .. WebClient webClient = new WebClient(); try...
1
by: vin.dor | last post by:
Dear All, I am using WebClient in my Visual Studio .Net 2003 project to download an image from the Internet. The following is my function: C# Code: public static bool downloadFile(string...
1
by: Mike | last post by:
I am using PowerShell to download an XML file into a string using the DownloadString(URI) method of System.Net.WebClient object. Sample commands below: $Result = $Null; $WebClient = new-object...
0
by: swheat | last post by:
Hello I would like to be able to automate downloading a file from a website which requires that I submit form parameters to start the download. The problem I am having is described exactly in this...
8
by: =?Utf-8?B?UnVpIE9saXZlaXJh?= | last post by:
WebClient.DownloadFile I am using the WebClient.DownloadFile function to download a file from server to a local client. When I execute the below code, file is created in server and not in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.