• Post Reply Bookmark Topic Watch Topic
  • New Topic

Writting ByteArray to Socket

 
Amee Dabo
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have been asked to write Bytearray over socket & I have no idea how to do this!
Need Help...Please Help!!!
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OutputStream os = aSocket.getOutputStream();
os.write(theByteArray);

Does this help?
 
Amee Dabo
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks...It worked...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!