Download File From Website

Posted on 2006-11-15
Last Modified: 2010-04-24

I need to download a file from a website into my Windows Form Application. For example the file is

I just need to know what I should be using to access a file over the Internet.

I'd like to save the file into a String or a local file. But I think I can handle this part.

Thanks in advance!
Question by:YoungBonzi
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Author Comment

ID: 17964707
Thanks Mahesh, but I'm very confused by those examples. Isn't there something in the .NET 2/3 framework to handle this?

Author Comment

ID: 17965351
I found a solution...

WebClient^ myWebClient = gcnew WebClient;
Stream^ myStream = myWebClient->OpenRead( "" );

I can then manipulate myStream to do what I need.

Accepted Solution

PashaMod earned 0 total points
ID: 18008788
Closed, 125 points refunded.
Community Support Moderator

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ ( I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question