Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 253
  • Last Modified:

Downloading files from Internet

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
Moin
Asked:
Moin
1 Solution
 
rrcCommented:
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
 
bogie2Commented:
You could also use a CArchive and store using the "<<" operator.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now