Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

server/client ,transfering of gif files  RSS feed

 
saurabh sood
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
please let me know the method of passing gif files from the server side to the client side. and what should i use to display them.there seems to be a loss in the bytes that r sent from the server to the client.
 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey! Tell me more abou t u r problem..
ne way from what I feel u r problem is.. open bufferedReader stream or datainput Stream on the receiver and read first the file name and then the file size..
Your transmiter must transmit only bytes till the file size and the receiver must do the same..
well this is wrt TCP/IP
ne way heres a sample

The Reverse in the sender.. so no loss of bytes..
regds
gautham kasinath
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!