Write it to a file then run zip over it then send the file. see man zip
Don't forget that you can run command-line programs from within a program. Tom Munro Glass wrote: > I'm developing a C++ application using Qt 4 as the primary library. I have a > large block of data in a memory stream and I need to zip it prior to sending > it via a socket to a Windows client application. > > Qt doesn't have support for zip, so I'm wondering how to go about doing this > - > any suggestions? > > Thanks > > Tom Munro Glass > > _____________________________________________________________________ > > This has been cleaned & processed by www.rocketspam.co.nz > _____________________________________________________________________ > -- ______________________________________________________________ Zane Gilmore: Analyst/Programmer Cellphone: 0276 319 206 Telephone: +64-3 943 5447 Facsimile: +64-3 379 4886 Address: Level 1, 179 Tuam St, Christchurch, New Zealand Post: PO Box 13300, Christchurch 8011, New Zealand NZS.com : New Zealand Search Web: http://www.nzs.com/ ______________________________________________________________
