|
Post by ad on Feb 21, 2004 3:50:57 GMT -5
I use a ClientDataSet to create a dataset in memorystrem I want to zip the memorystrem and save it to disk. But after ececuting the below code, I can not find the zipped file.
How can I do ?
ClientDataSet1.SaveToStream(aMemoryStream); VCLZip.ZipFromStream(aMemoryStream, 'c:\ttt.zip');
|
|
|
Post by Kevin on Feb 23, 2004 10:43:25 GMT -5
Somewhere you should set the VCLZip.ZipName property before calling Zip. That will determine where the zip file is located.
Also, I'm not sure, but you might want to set aMemoryStream.Position := 0 before calling ZipFromStream.
Kevin
|
|