This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes video in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "video in java" Watch "video in java" New topic
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: 18671
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 ]
Shaan Shar
Ranch Hand

Joined: Dec 27, 2005
Posts: 1249

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 - Every great individual common man
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: video in java
 
Similar Threads
WA #1.....word association
Convert Video into SWF and FLV format
I meant assertions
Parody to the dove girl video
Video and Audio Stream through MIDlets, possible?