Solved

Downloading files from Internet

Posted on 1998-08-12
2
222 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
ID: 1320668
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
ID: 1320669
You could also use a CArchive and store using the "<<" operator.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
format the code in java 6 95
sum28 challenge 31 112
abstract class with all non abstract mentods 6 76
Updating statistics with error notification email in SQL server 4 96
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

803 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