Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
buabco #1
ByteArray Compress
It seems that bytearray compress uses a different algorithm than the one used by PHP anyone knows of any PHP class to uncompress a compressed bytearray?
Thanks
buabco Guest
-
SharedObject - ByteArray
Dear all, I have a problem with a SharedObject remote and flash media server (I'm using Flex obviously :-D). I have to store a custom class in a... -
Extract Image from ByteArray
Hi, If i have a byteArray of an image, how do i make a displayable Image I can load it using a Loader.loadBytes but then i cant display that... -
Put String into a ByteArray
Hi: I have a String variable with the result of an SQL 2005 varbinary field. Can anybody tell me how to put this information into a ByteArray... -
ByteArray Object Problem
Hi, I have a binary field that contains SessionId. Iam retriving the sessionid from the database and trying to pass that value in the... -
How to convert ByteArray to String?
We are using SQL Server, one of the columns is ByteArray datatype, when I tried to output it with the <cfoutput> tag, I got ' ByteArray objects... -
peterskeeter #2
Re: ByteArray Compress
It says Flex uses zlib... "Compresses the byte array using zlib compression.
The entire byte array is compressed."
PHP has zlib functions..i.e [url]http://www.phpdig.net/ref/rn69.html[/url]
I've never done this..but it should work..zlib is just a standard compression
algorithm..Pls let me know how it goes..I will use this soon.
Pete
peterskeeter Guest
-
buabco #3
Re: ByteArray Compress
Petter,
I'm afraid it didn't work, if I take a bytearray, and compress it with the
compress function, and the take the byte list and pass it to PHP (To do this I
base64encoded it so I can do copy paste from Actionscript to PHP code), then
used the base64_decode and use gzinflate on php to uncompress it, it doesn't
work. More so, both functions (PHP and Actionscript) use the same
specification, so I don't know what should I add to the compressed code to be
able to uncompress it when on php.
hope someone of Adobe sees this and is able to add more light on how the
compress function works, the compress function on PHP takes a compression level
function, but actionscript doesn't so my first question is what conpression
level is been use by the actionscript code.
buabco Guest
-
buabco #4
Re: ByteArray Compress
Finally, it worked with PHP you have to use gzuncompress
buabco Guest



Reply With Quote

