I used the above code and I managed to connect to the IP Camera. Now, I'm trying to download the stream into a jpeg file.
I tried using the code from http://stackoverflow.com/questions/8862 ... ing-poco-c
. However, i seemed to have errors on the ofstream outfile;
If I write std::ofstream outfile; , I get "Error: Incomplete type is not allowed"
When i change it to std::ofstream *outfile; it doesn't have any errors but I got errors on outfile.open( "myfile.jpg" ); I tried using outfile->open( "myfile.jpg" ); but it stil gives me error.
If I add #include <fstream>, there are no errors. However, if I tried compiling it, I get fatal error LNK1169: one or more multiply defined symbols found
Is there any other way to save the stream? Thanks.