• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

video in java

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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??
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 257
Hibernate Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 1252
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Hibernate Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic