[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Download File From Website

Posted on 2006-11-15
5
Medium Priority
?
232 Views
Last Modified: 2010-04-24
Hello,

I need to download a file from a website into my Windows Form Application. For example the file is http://mysite.com/thefile.txt

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!
0
Comment
Question by:YoungBonzi
[X]
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
5 Comments
 
LVL 8

Author Comment

by:YoungBonzi
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?
0
 
LVL 8

Author Comment

by:YoungBonzi
ID: 17965351
I found a solution...

WebClient^ myWebClient = gcnew WebClient;
Stream^ myStream = myWebClient->OpenRead( "http://www.asite.com/afile.txt" );

I can then manipulate myStream to do what I need.
0
 

Accepted Solution

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

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

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++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

649 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