Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

video in java

 
Soma Sundaram
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to transfer a video file between server and client.i have used socket connection.converted the video into bytes and transferred and got the video.but only the first few sec of the video plays for the full time of the video.the size of the video in the client is the same.

What to do?IS there any other way to do that??
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, using a socket should be fine. If you are able to get a connection at all (which apparently you can), you should be able to transfer the file correctly if you code it correctly. You can read about some common errors people make when using IO here: Read Doesn't Do What You Think It Does. If that doesn't help, you can post the code that actually transfers the bytes, and we may be able to offer more help.
 
Srinivas Kalvala
Ranch Hand
Posts: 257
Firefox Browser Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I too got same problem. Just take care of CRLF thing in your data transfer.
, Thats all.

its CRLF only.
[ September 25, 2006: Message edited by: Srinivas Kalvala ]
 
Shaan Shar
Ranch Hand
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Srinivas Kalvala:
Hello,

I too got same problem. Just take care of CLRF thing in your data transfer.
, Thats all.


If I am not wrong, I think you must be talking about CRLF instead of CLRF

If I am wrong then let me know what is CLRF
 
Srinivas Kalvala
Ranch Hand
Posts: 257
Firefox Browser Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Have a look at this... seems intresting ...

http://forum.java.sun.com/thread.jspa?threadID=765826&messageID=4367894#4367894


[if it is not related to your requirement, just ignore it.]
[ September 25, 2006: Message edited by: Srinivas Kalvala ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic