Search:

Type: Posts; User: John20001

Search: Search took 0.07 seconds.

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

    Ohhh!! Im sorry I misunderstood. Instead of using ImageIO to write to the socket output stream, I could write to a ByteArrayOutputStream and capture the bytes. Then send these bytes over the socket....
  2. Re: Simple Remote control program - ImageIO exceptions , no idea why! Help please :(

    Well, these are the modified methods:

    Server.java - Communicate()

    public void communicate()
    {
    int counter = 0;
    String instruction;

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

    Ahh yes, that does work, however if used in conjunction with ObjectOutputStream (for comm prot) it crashes the program for some reason or another. I think if I just use ImageIO write() and the output...
  4. Re: Simple Remote control program - ImageIO exceptions , no idea why! Help please :(

    Yes, im now using ObjectOutputStream and it seems to work okay, however not for the images... gives the exception message java.awt.image.BufferedImage. I guess that means even though i put the...
  5. Re: Simple Remote control program - ImageIO exceptions , no idea why! Help please :(

    Well, my friend, you are very correct. I stopped the ImageIO reads and writes on the streams with comments, and the messages (comm prot) are sent wonderfully! So writing different types of data on...
  6. Re: Simple Remote control program - ImageIO exceptions , no idea why! Help please :(

    Well, I printed out what the string was... And this is where I begin to get cranky with server/client programming. Inconsistencies. I think you may verify that my server and client PrintWriter and...
  7. Re: Simple Remote control program - ImageIO exceptions , no idea why! Help please :(

    Sure, and thanks again for spending time to help me! I put a few print statements in critical regions (which of course drastically reduced my clientframe framerate). I noticed something interesting....
  8. Re: Simple Remote control program - ImageIO exceptions , no idea why! Help please :(

    Ah, forgive me, I've been quite busy the past few days. Yes, its quite simple, which is why i'm so confused!


    import java.util.Scanner;
    public class Main
    {
    public static void main(String...
  9. Re: Simple Remote control program - ImageIO exceptions , no idea why! Help please :(

    Hello, Norm, thanks so much for replying! As I said, TheImage is just a wrapper for a BufferedImage (Since it isnt serializable), and ClientFrame is a simple GUI that just prints the received image....
  10. Simple Remote control program - ImageIO exceptions , no idea why! Help please :(

    Hello all. This is my first post, and I do apologize for perhaps posting in the wrong place, structuring my code poorly, or otherwise. I just threw this together to essentially have a java Jframe...
Results 1 to 10 of 10