Solved

Downloading files from Internet

Posted on 1998-08-12
2
199 Views
Last Modified: 2013-11-20
Hi, I want to download files from Internet using my utility. I am using CInternet class of MFC. I can donload text files but how I will be able to write binary files like mpeg files. Will I have to use WriteFile method of CInternet class.
Waiting for help...
0
Comment
Question by:Moin
2 Comments
 

Expert Comment

by:rrc
Comment Utility
If you open a CHttpFile, you should be able to loop on the Read()  calls and output the results to any other CFile using the Write().
0
 

Accepted Solution

by:
bogie2 earned 20 total points
Comment Utility
You could also use a CArchive and store using the "<<" operator.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
modThree challenge 4 64
tripleUp challenge 7 65
ShiftLeft challenge 21 65
sumHeights2  challenge 7 75
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now