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....
Type: Posts; User: John20001
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....
Well, these are the modified methods:
Server.java - Communicate()
public void communicate()
{
int counter = 0;
String instruction;
try
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...
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...
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...
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...
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....
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...
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....
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...