| Dart Home | PowerTCP Zip Compression for Active | Custom Development | Reply | PowerTCP Zip Compression for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Zip Compression for ActiveX Topic: Buffer 2 buffer problem |
| User269 Posts: 1 Member Since: 02/02/02 |
posted February 2, 2002 2:13 AM I need to compress data and transmit it over the internet. I have been checking the product Zip tool and founded that i can use streams. Well i have this code to transmit: 'Compress "Data" Stream.Clear Stream.Write Data Compressor.FileStore.Zip Stream Stream.Position = 0 Stream.Read Data 'MsgBox "Compress=" & Data Works ok. Then i transmit the "data" to another party (other PC, with the same App, diffente procedure), and i use the following code: 'just received "data" stream.clear stream.write data Main.Compressor.FileStore.add Stream Main.Compressor.FileStore(1).Extract Stream2 stream2.position=0 msgbox stream2.readstring I don't get nothing!!! Please, what i am doing wrong? ram |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted February 4, 2002 3:18 PM Hi Ram, To add a DartStream with compressed data to the FileStore, you should use the Load method, not Add. The code below demonstrates. Still, there is a bug in the released version which will prevent you from doing this. If you would like a test beta dll (in which the problem is fixed), please email support@dart.com. Thanks, -ken Dim Stream1 As New DartStream Dim Stream2 As New DartStream Zip1.FileStore.Clear Stream1.Write Data Zip1.FileStore.Load Stream1 Zip1.FileStore(1).Extract Stream2 Stream2.Position = 0 MsgBox Stream2.ReadString K M Drake Dart Tech Support |
| Reply | PowerTCP Zip Compression for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|