H
hystable
Can anyone help me? I've got an EJB that has a BufferedOutputStream
which writes a byte[] out to a socket. When this byte[] comes into the
EJB, there are no spaces at the end. When the byte[] leaves the EJB,
there are spaces added to the end of it. It seems like maybe the
BufferedOutputStream is filling the buffer with spaces (apparently
about 160)? Has anyone heard of this before? Here's basically what I'm
doing:
public byte[] sendsock(byte[] authrequest) throws IOException
echoSocket = new Socket(testIP, testPort);
outBuffStream = new
BufferedOutputStream(echoSocket.getOutputStream());
outBuffStream.write(authrequest);
Does anyone have any ideas as to how the spaces would be getting
introduced into the byte[]?
Thanks in advance.
Curtis
which writes a byte[] out to a socket. When this byte[] comes into the
EJB, there are no spaces at the end. When the byte[] leaves the EJB,
there are spaces added to the end of it. It seems like maybe the
BufferedOutputStream is filling the buffer with spaces (apparently
about 160)? Has anyone heard of this before? Here's basically what I'm
doing:
public byte[] sendsock(byte[] authrequest) throws IOException
echoSocket = new Socket(testIP, testPort);
outBuffStream = new
BufferedOutputStream(echoSocket.getOutputStream());
outBuffStream.write(authrequest);
Does anyone have any ideas as to how the spaces would be getting
introduced into the byte[]?
Thanks in advance.
Curtis