• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 256
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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