|
From: Barry S. <at...@me...> - 2009-11-12 17:51:54
|
Hi:
I have been working on using zlib in various methods for some file transfers between clients running a TCLTK app and a server running Apache PHP.
In my testing I have noticed that zlib push does not work correctly with fcopy -command, it also appears that zlib stream suffers from the same issues.
Using zlib push I can not gunzip inflate or decompress any file that is created wether on the machine it is created on or the server.
[ PHP execs a tcl script to extract the original file after it is posted to the server ]
If I open the file, read it in, zlib {compress gzip or deflate} then save to a new file it always works correctly.
---
I tried using zlib stream to read in chunks of the original and stream it into a new file channel. I get the same result as with zlib push.
[ Meaning if I zlib push compress a.txt I get a file that exactly matches the result of using zlib stream compress. ]
---
In local testing (not transmitting to the server) I was able to get zlib push to correctly compress a file with fcopy but only if I was not using the fcopy -command option.
[ Hence a blocking solution and unacceptable for network transmissions ]
If I compiled the same code using ActiveTcl Compiler the script would then fail to create a proper file.
---
Has anyone else run into any of these issues and/or is there a known work around?
Thanks,
Barry
|