473,387 Members | 1,464 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.

How to Download a file or .exe in C# programming

3
Hi there. I am new to this forum. I would like to know how can I download a file or .exe from a server on to the client machine. My software will run on the client machine. I want to know if there is some built in functionalty in windows that I may use.
Aug 18 '08 #1
3 1276
Curtis Rutland
3,256 Expert 2GB
You want to download it from a web server? If you are using .NET, you can use HttpWebResponse and write the resulting stream to a file. If you aren't using .NET, you are in the wrong forum. :)

You need to clarify your question.
Aug 18 '08 #2
UmairP
3
I am using C#.NET to write a desktop software that will download exe from webserver. I have a webserver as well. I just want to know if there is a built in way in .NET framework or windows that I can use.
Aug 18 '08 #3
alag20
84
I am using C#.NET to write a desktop software that will download exe from webserver. I have a webserver as well. I just want to know if there is a built in way in .NET framework or windows that I can use.

if you are already having a webserver then you can simply send the data as if you were passing bytes as the parameter. A better approach for large file is to use MTOM on both the webserver and client. Google it and you will find lots of sample code for this.
Aug 18 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Rod | last post by:
Hi, I have a script that download any file to the user according to the parameters. I call the script like this: download.php?file=xxx/myfile.doc&file_short=myfile.doc My script is working...
8
by: Radioactive Man | last post by:
I am fairly new to the latest verion of Python and using it on windows 95, 2000, and/or XP. What libraries, modules, functions, etc. would I need to set up a Python script to download a file, say...
2
by: Sleepy | last post by:
I am wanting to allow a client to download a file from a web server and save it on their local PC. The only way that I have found to do this is to use HTTP headers. I am using the code shown below...
3
by: Loane Sharp | last post by:
Hi there I'm new to VB.NET programming and really programming in general. I have a small binary file on my website that I want to download programmatically onto my local hard drive. I can...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
4
by: halimunan | last post by:
Hello all, I have a question, how do i measure the download/upload speed... as if download rate, upload rate or kbps transfer rate. i want to do my own windows application using C# to measure the...
1
by: koraykazgan | last post by:
Hi all, I have written an ASP.Net 2.0 Web Application. I am using WinXP Pro SP 2 and have IIS 5.1 on my system, where the Application is developed. After finishing implementation I have...
5
by: vinodkus | last post by:
dear sir/madam I have to write a code for download file using asp. please help me thanks in advance
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
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
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.