Ask a Question related to Macromedia Flash Data Integration, Design and Development.
-
masteffens #1
Uncompressing socket data from Java
Has anyone had any luck sending compressed data from java to flash using the
flash.net.Socket class? I am compressing the data on the java side using the
Deflator class which uses zlib compression. Trying to uncompress using
ByteArray.uncompress() and it is failing and throwing an exception saying
unable to uncompress. I would like to find a compression algorithm in java that
matches the one used by ByteArray.uncompress.
masteffens Guest
-
ODBC Data socket problem
I am using Cold Fusion MX 7 on Windows 2003 and attempting to connect to an ODBC data source. The data source (a thoroughbred business basic... -
Streaming Data - how? XML socket? Remoting?
I need a good example and someone to fill me on the best way to do streaming data. Basically when information changes on the data source (seconds,... -
Java socket server
I am pretty sure you use readLine() method in Java. Read line reads the content only when the last char i '\n' (end line). So if you try to send... -
Java socket server
Im trying to make my own socket server in java and flash, but for some reason the server class doesnt recieve anything until the connection is... -
Uncompressing files coming out of cpio -o on the fly??
I'm trying to move lots of compressed Oracle datafiles from one system to another. The fastest scheme I've come up with so far is to use a... -
the_real_hinkle #2
Re: Uncompressing socket data from Java
I'm have the same problem exactly. Replace Java Deflater with Python zlib module.
the_real_hinkle Guest
-
masteffens #3
Re: Uncompressing socket data from Java
I now have it working - the problem was due to the fact that the data is
buffered and sent through in chunks. I had to send through the number of bytes
first, followed by the compressed data. The flash code then appends to a byte
array until it has read all of the bytes and only decompresses when all bytes
have been read. Buffering of data sent over a socket is controlled by the op
sys I think and you can't easily change the buffer size. The other way you
could do it is to append an end token to the compressed data before sending.
The flash code would then keep adding to the ByteArray until it finds the end
token.
masteffens Guest
-
paf #4
Re: Uncompressing socket data from Java
Hi can u share some java and as3 code showing how u solved it?
paf Guest



Reply With Quote

