![]() |
|
|
|
|
|
|
2
26th October 13:49
External User
Posts: 1
|
MP3 format is already compressed, so ZIPping them just adds clutter.
You should use Google Groups to find either the answer or the best forum for your question. This newsgroup is only qualified to discuss the raw C++ language itself. Your OS will have downloading functions. -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!! |
|
|
5
30th October 14:31
External User
Posts: 1
|
In article <1155956172.084655.99930@m79g2000cwm.googlegroups. com>,
work@brianmielke.com says... [ ... ] There are other formats, but most are already compressed, so the same comments apply. Zip will do some good on a pure PCM file (e.g. .wav file) but that's just about it -- and something like MP3 or ogg will compress the same file a LOT more. OTOH, if you view zip as a pure archiver, it's not particularly terrible -- most implementations of zip are smart enough to just store files that won't compress, and the software to extract from the archive and such are probably more widely available than for most pure archivers like ar. -- Later, Jerry. The universe is a figment of its own imagination. |
|
|
6
30th October 14:32
External User
Posts: 1
|
You may have missed the question is off-topic. Hence I can say anything I
like, so long as I bounce. And please note everything I said was true. -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!! |
|
|
8
30th October 14:32
External User
Posts: 1
|
Hi,
If you are on MS-Windows you might want to user the internet api, below is an example of some part of my own program that ftp's files (this part doesn't send files but if you lookup the api that is pretty easy to add).: If you can decide how the files are compressed you could 'gzip' them and unzip them with zlib library (works on ms-windows (by linking you program to zlib.lib) as well as on most linux/unix systems (by including libz.a or libz.so to your prorgram) (http://www.zlib.net/). This library is very easy to use. Regards, Ron AF Greve --------------------------------------------------------------------------------------- #include <shlwapi.h> #include <shlobj.h> #include <afxpriv.h> if( InternetAttemptConnect( 0 ) == ERROR_SUCCESS ) { if( !( Session = InternetOpen( Server, INTERNET_OPEN_TYPE_DIRECT, 0, 0, 0 ) ) ) { AfxMessageBox( _T( "Could setup internet session" ) ); Succeeded = false; } else { if( !( Connection = InternetConnect( Session, Server, INTERNET_DEFAULT_FTP_PORT, User, Password, INTERNET_SERVICE_FTP, 0, 0 ) ) ) { AfxMessageBox( _T( "Could not establish ftp session" ) ); Succeeded = false; } else { if( !FtpSetCurrentDirectory( Connection, RemoteDir ) ) { AfxMessageBox( _T( "Could not set current dir" ) ); Succeeded = false; } else { if( !FtpCreateDirectory( Connection, _T( RemoteDir + "/" + RelBackup ) ) ) { //AfxMessageBox( _T( "Could not set current dir" ) ); //Succeeded = false; } } } } } -- Regards, Ron AF Greve http://moonlit.xs4all.nl |
|