It took a day for this post to show up on Yahoo, and in the meantime 
I have resolved the issue.  Turns out that I was passing a WideString 
from a windows server to Flex (also on Windows).  But the char sets 
must have been different (utf-8 vs ASCII), so the compressed string 
was misunderstood at trhe client (Flex app).

I pass the string as HexString now and it works fine, will switch to 
Byte Stream soon.

best,

Matthew


--- In flexcoders@yahoogroups.com, "Matthew OMeara" <[EMAIL PROTECTED]> 
wrote:
>
> I have been spinning cycles trying to get the uncompress function 
of 
> ByteArray to process a zipped xml string that I am sending from a 
> custom web server.  I have read up on the process and understand 
that 
> Flex ByteArrays support zlib compression and I believe they expect 
to 
> find an Adler checksum within the zipped string as well.
> 
> Problem is that there are 31 flavors of compression to choose from 
> server side and I can not get any to match what Flex ByteArray 
> decompress expects???
> 
> For example, there are these options of compession within zlib...
> 
>   CompressionLevel = (
>     zcNone,
>     zcFastest,                
>     zcDefault,
>     zcMax,
>     zcLevel1,
>     zcLevel2,
>     zcLevel3,
>     zcLevel4,
>     zcLevel5,
>     zcLevel6,
>     zcLevel7,
>     zcLevel8,
>     zcLevel9
>   );
> 
>   Strategy = (
>     zsDefault,
>     zsFiltered,
>     zsHuffman,
>     zsRLE,
>     zsFixed
>   );
> 
> ~
> 
> The ultimate goal here is to grab 5mb xml files that are first 
> zipped, then encrypted that have been cached on the server.  I have 
> flex unencrypting data successfully, but I can not get Flex to 
> recognize and unzip any flavor of Zip that I send to it.
> 
> Any thoughts?
> 
> Thanks
> 
> Matthew
>


Reply via email to