Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Re: Simple Remote control program - ImageIO exceptions , no idea why! Help please :(

    Don't know where that idea came from. What I meant was: The write method can write the bytes of an image to a byte array.
  2. Re: Simple Remote control program - ImageIO exceptions , no idea why! Help please :(

    What is the error message? And what class/method causes it?
  3. Re: Simple Remote control program - ImageIO exceptions , no idea why! Help please :(

    ImageIO write() will write to an OutputStream. There is a ByteArrayOutputStream class that could capture the bytes.
  4. Re: Simple Remote control program - ImageIO exceptions , no idea why! Help please :(

    I think it would be possible to send different types of data on the same stream. You would use the same class to control all the I/O and not two different wrapper classes like you were doing.
    For...
  5. Re: Simple Remote control program - ImageIO exceptions , no idea why! Help please :(

    What your code does that is different is to call getOutputStream() and wrap it in different classes each of which uses the stream differently. This may confuse what is being written to the streams....
  6. Re: Simple Remote control program - ImageIO exceptions , no idea why! Help please :(

    What I haven't figured out yet is shown in this from my debug output posted earlier:
    C resp.Len=20<
    The response that is read is always 20 characters long but the data that was sent was less than...
  7. Re: Simple Remote control program - ImageIO exceptions , no idea why! Help please :(

    Can you post the console from when you execute the program.
    Here is what I get when I run Server and Client in the same JVM:

    Running: F:\Java\jre6\bin\java.exe -classpath...
  8. Re: Simple Remote control program - ImageIO exceptions , no idea why! Help please :(

    Do you have a driver program for testing? I don't see any main() methods for executing these classes.
  9. Re: Simple Remote control program - ImageIO exceptions , no idea why! Help please :(

    Where is the definition for the TheImage class and ClientFrame?

    You have some catch blocks without calls to printStackTrace(). You could be missing some important exceptions.
Results 1 to 9 of 9