Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default Re: ByteArray Compress

    Finally, it worked with PHP you have to use gzuncompress
    buabco Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139