Note that ByteArray cannot consume a .ZIP file, as it contains a catalog.  It 
only handles the actual compressed bytes.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: [email protected] [mailto:[email protected]] On Behalf 
Of ACasualObserver
Sent: Thursday, February 26, 2009 2:48 PM
To: [email protected]
Subject: [flexcoders] Re: Reading compressed file in AS 3


Thanks for the quick response. Both my server and client are Windows.
Actually they are the same machine!!!

I will try the checksum tomorrow but I checked number of bytes that
are both the same.

Another test I did was to send the uncompressed file and read into a
ByteArray. When I compress the ByteArray on the sever, the result is
13 bytes larger than the compressed file. Compressed files is over
88,000 bytes.

I create the compressed file by calling gzopen. I use wb9 for the
mode. Should I used another mode?

Thanks.

--- In [email protected]<mailto:flexcoders%40yahoogroups.com>, Maciek 
Sakrejda <msakre...@...> wrote:
>
> What are the other bytes ;) ?
>
> I've run into some issues working with low-level bit-twiddling before
> (only on Linux, but that still may be indicative of larger problems).
> For example, in FP9 on Linux, sending a payload with a POST URLRequest
> truncates the payload data at the first 0x00 byte (!). On FP10 in Linux,
> that seems to have been fixed, but I'm getting a different error that I
> have not yet tracked down.
>
> I'm not sure if your issue is related, but I'd make sure your data makes
> it to the client okay before you try to decompress it. E.g., can you
> compute a checksum for both client and server and compare?
> --
> Maciek Sakrejda
> Truviso, Inc.
> http://www.truviso.com
>

Reply via email to