This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading byteArray at Client side  RSS feed

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

I am supposed to read byteArray from socket on client side.
I checked the same various ways using InputStreamReader.Data is getting passed to the server but client is just not able to read the data which is sent by the server in byte array.
Can you please help?

Thanks in advance,
Ameeta
 
Edwin Dalorzo
Ranch Hand
Posts: 961
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Martin Simons
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just like you used ObjectOutputStream to write your ByteArray in your
previous post, you would use ObjectInputStream to read the ByteArray.
 
Amee Dabo
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot..
Problem is solved..
Now I have another prob which I have written under new thread
"Reading data from server at client side asynchronously (nonblocking) "
Will you please help for teh same?

Thanks,
Ameeta
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!