473,396 Members | 1,866 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,396 software developers and data experts.

web app downloading a file

hi:

i have a small web app that uploads some files, and now i want to be
able to download them, basically i have a full path of the file, i
been googling but i dont seem to find an example of this
thanks

f

Sep 13 '07 #1
4 1059
f,

You can use the WebClient class or the HttpWebRequest/HttpWebResponse
classes in the System.Net namespace to download files (from what I assume is
a website).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"roundcrisis" <ro*********@gmail.comwrote in message
news:11**********************@y42g2000hsy.googlegr oups.com...
hi:

i have a small web app that uploads some files, and now i want to be
able to download them, basically i have a full path of the file, i
been googling but i dont seem to find an example of this
thanks

f

Sep 13 '07 #2
Hi,

HttpWebRequest & WebClient will send you ni the right direction

Note that you will need the web path (not the physical one)

"roundcrisis" <ro*********@gmail.comwrote in message
news:11**********************@y42g2000hsy.googlegr oups.com...
hi:

i have a small web app that uploads some files, and now i want to be
able to download them, basically i have a full path of the file, i
been googling but i dont seem to find an example of this
thanks

f

Sep 13 '07 #3
On Sep 13, 6:25 pm, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
laceupsolutions.comwrote:
Hi,

HttpWebRequest & WebClient will send you ni the right direction

Note that you will need the web path (not the physical one)

"roundcrisis" <roundcri...@gmail.comwrote in message

news:11**********************@y42g2000hsy.googlegr oups.com...
hi:
i have a small web app that uploads some files, and now i want to be
able to download them, basically i have a full path of the file, i
been googling but i dont seem to find an example of this
thanks
f- Hide quoted text -

- Show quoted text -
what if I dont have a web path?

Sep 14 '07 #4
Hi,

"roundcrisis" <ro*********@gmail.comwrote in message
news:11*********************@d55g2000hsg.googlegro ups.com...
On Sep 13, 6:25 pm, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
laceupsolutions.comwrote:
>Hi,

HttpWebRequest & WebClient will send you ni the right direction

Note that you will need the web path (not the physical one)

"roundcrisis" <roundcri...@gmail.comwrote in message

news:11**********************@y42g2000hsy.googleg roups.com...
hi:
i have a small web app that uploads some files, and now i want to be
able to download them, basically i have a full path of the file, i
been googling but i dont seem to find an example of this
thanks
f- Hide quoted text -

- Show quoted text -

what if I dont have a web path?

You have to.
You will have to make the upload directory accesible (like a virtual dir) to
be able to downloat from there.
Sep 14 '07 #5

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

Similar topics

4
by: Luke StClair | last post by:
Only marginally belonging in this newsgroup... but oh well. I've just started writing in python, and I want to make the files available on the web. So I did the standard <a...
0
by: TJ | last post by:
Hi, I've written code web-based uploading and downloading. Here is some code for it. For saving file into MS-SQL database, SaveFileIntoDB(HttpPostedFile file) { int fileLength =...
2
by: Bala | last post by:
Hi I am trying to download the PDF files from my webserver using ASP.Net. All my files are stored at F Drive on webserver. Like this F:\Main Folder\Sub Folder\Files\File1.pdf I am...
1
by: just.starting | last post by:
Hi, My dot net client downloads files and checks for any new files time to time. The server is apache2.0.53 server. So what happens is that my file download thing works fine if I dont try to call...
3
by: just.starting | last post by:
Hi, My dot net client downloads files and checks for any new files time to time. The server is apache2.0.53 server. So what happens is that my file download thing works fine if I dont try to call...
5
by: fniles | last post by:
We created an ActiveX control and marked it as safe for scripting using Implements IObjectSafety. We then created a CAB file and signed it using Verisign. We also created a license file (LPK file)...
0
by: just.starting | last post by:
I am having problem while downloading files from an apache server2.0.53 with php4.3.10.While downloading some files it generally stops after downloading some specific amount and then stops...
2
by: Tomas Martinez | last post by:
Hi there! I'm trying to download a file in my asp.net web, but when downloading it from a Firefox browser, instead of downloading the example.exe file, it's downloading example.exe.htm. My code...
1
by: DBC User | last post by:
Hello, I would like to copy a very large file (80MB) from the web, which is the best approach for downloading such a large file and also how can I show how much percent completed to user. I...
3
by: Chuck Renner | last post by:
Please help! This MIGHT even be a bug in PHP! I'll provide version numbers and site specific information (browser, OS, and kernel versions) if others cannot reproduce this problem. I'm...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.