Professional Web Applications Themes

ByteArray Compress - Macromedia Flex General Discussion

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...

  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. #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

  3. #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

  4. #4

    Default Re: ByteArray Compress

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

Similar Threads

  1. SharedObject - ByteArray
    By Dave 81 in forum Macromedia Flex General Discussion
    Replies: 0
    Last Post: May 19th, 08:41 AM
  2. Extract Image from ByteArray
    By greenhippo in forum Macromedia Flex General Discussion
    Replies: 1
    Last Post: April 20th, 04:54 AM
  3. Put String into a ByteArray
    By Fantasma414 in forum Macromedia Flex General Discussion
    Replies: 0
    Last Post: April 18th, 01:57 PM
  4. ByteArray Object Problem
    By BIZ_CF in forum Coldfusion Database Access
    Replies: 3
    Last Post: May 27th, 09:45 AM
  5. How to convert ByteArray to String?
    By gmu in forum Coldfusion Database Access
    Replies: 18
    Last Post: April 13th, 02:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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