| Author |
video in java
|
Soma Sundaram
Greenhorn
Joined: Sep 17, 2006
Posts: 15
|
|
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
Joined: Jan 30, 2000
Posts: 18670
|
|
|
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.
|
"I'm not back." - Bill Harding, Twister
|
 |
Srinivas Kalvala
Ranch Hand
Joined: Oct 20, 2005
Posts: 257
|
|
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 ]
|
 |
Ankur Sharma
Ranch Hand
Joined: Dec 27, 2005
Posts: 1234
|
|
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
|
The Best way to predict your future is to create it
Ankur Sharma
|
 |
Srinivas Kalvala
Ranch Hand
Joined: Oct 20, 2005
Posts: 257
|
|
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 ]
|
 |
 |
|
|
subject: video in java
|
|
|