Sending Video file over Sockets

I m trying to play song on server machine as well as on client machine
so any one can help me in this regard.

I m trying to play song on server machine as well as
on client machineYou could try filling a number of server with varying levels of water and then tapping the sides though to be honest there exist a vast number of musical instruments that will perform this function. Try a piano.
so any one can help me in this regard.I suspect specification is not your strong point!
Try asking a more specific question relating to your problem.

Similar Messages

  • Problem with Sending files over Sockets

    Hi. I have a problem when I try to send files over sockets. When I send text files it works well but when I try to send .jpg or other kind of files it doesn't work well because some characters are wrong, I hope you can help me.
    Here is my code:
    //Sender code
    import java.io.*;
    import java.net.*;
    class Servidor{
         Servidor(){
              try{
                   String arch="art.jpg";
                   ServerSocket serv=new ServerSocket(125);
                   Socket socket=serv.accept();
                   System.out.println("Conectado");
                   int c;
                   BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
                   FileInputStream fis=new FileInputStream(arch);
                   File f=new File(arch);
                   bw.write(""+f.length());
                   bw.newLine();
                   bw.flush();
                   System.out.println("Escribiendo");
                   while((c=fis.read())!=-1){
                        bw.write(c);
                   bw.flush();
                   fis.close();
                   System.out.println("Terminado");
                   while(true){
              }catch(Exception e){
                   System.out.println(e);
         public static void main(String arg[]){
              new Servidor();
    //Client code
    import java.io.*;
    import java.net.*;
    class Cliente{
         Cliente(){
              try{
                   Socket socket=new Socket("localhost",125);
                   System.out.println("Conectado");
                   BufferedReader br=new BufferedReader(new InputStreamReader(socket.getInputStream()));
                   long tam=Long.parseLong(br.readLine());
                   long act=0;
                   FileOutputStream fos=new FileOutputStream("resp.jpg");
                   System.out.println("Recibiendo: "+tam);
                   while(act<tam){
                        fos.write(br.read());
                        act++;
                   System.out.println("Terminado: "+act+" / "+tam);
                   fos.close();
              }catch(Exception e){
                   System.out.println(e);
         public static void main(String arg[]){
              new Cliente();
    }

    I don't think you want BufferedReader and OutputStreamWriter, you want ByteArrayOutputStream and ByteArrayInputStream . The problem is that you are sending jpegs (binary data) as text.

  • Send wav files over a network

    Hi folks,
    I need to send sound files over a network. The files I'm wanting to send are wav files. I kinda have the mechanism that sends a file, but I am not sure how to convert wav files into something that I can easily send. Do I need to convert them into bytes, serialize them...etc I don't know.
    Can anyone please point me in the right direction? An example would be very much appreciated.
    Thank you,
    E

    hi
    this is very simple
    convert voice to bytearray
    just create one server socket and client socket then connect a sockets and transmit
    download sample from
    http://javasolution.blogspot.com/2007/04/voice-chat-using-java.html

  • How to edit xml file particular value. and how to send xml file over ip address 192.168.2.10 using ftp

    how to edit xml file particular value. and how to send xml file over ip address 192.168.2.10 device using ftp through Ethernet

    Hello
    For using FTP function in LabVIEW, I recommend you to check this document: FTP Basics
    Also, take a look at FTP Browser.vi, which is available at the Example Finder.
    To edit a XML file, try to use VIs in XML palette. Maybe Write to XML.vi helps you.
    Post your current VI if possible.
    Regards
    Mondoni

  • Unable to send video files

    i have Lumia 820.. And I am unable to send video files through gmail as well as WhatsApp.. Please help me out Asap..

    There may be a limit on gmail on how large an attached file can be, often the limit is around 5mb, all you can do is use a file sharing site like dropbox or use skydrive or googledrive to upload the video & then send the link to the file via email.
    hth,

  • When i send a file over iChat to another mac it compresses the file, where is this compressed file stored?

    Today i was transfering a few folders with pictures and videos over to another mac and I noticed that before i sent the file iChat would compress it.  Now this is understandable because they were fairly large files, over 2GB, and this would make them transfer faster.  The problem is that I was transfering the files because my mac is low on hard drive space and I was trying to free some up.  By compressing the files first it was using up more space on my hard drive and I quickly cancelled the compression.  I soon realized though that my hard drive space was still disappearing into thin air. I only had 6GB left and was running out fast.  As it reached 2GB I began to quickly delete large files I no longer needed hoping that I wouldn't run out of space. It dropped all the way down to 12.4MB before it finally stopped, even with me deleting files.  I'm not quite sure what was happening to all of my hard drive space, but was wondering if maybe iChat continued to compress the files even after I cancelled the compression.  Anyways if anyone knows why this happened or where iChat stores the files it compresses that would be greatly appreciated.

    Hi,
    I have heard of this before.
    One report suggested it was only PDF files their case.
    I cannot replicate it with any pic files (Over 2Gb) PDF or otherwise or files and folders combos.
    My tests were from Lion/iChat 6.0.3 to Snow Leopard (iChat 5.0.3)
    I would have thought iChat would have created the Zippped/Stuffed files in the same folder as the original items
    (i.e pic in the pictures folder (or relevant subfolder) and other files and documents in the Documents folder.
    With any application that does Stuffing/Zipping it will create temporary space for doing so.
    Much like the way a graphics app creates a Scratch file to keep the 20 or so Undos it works with.  (with graphic Apps you can make the Scratch file on another Drive if you have one which can help)
    Do this:-
    with iChat Open go to the Window Menu.
    Select the File transfers item
    In this Window (that pops up) select the File that was going to be Transferred.
    When it is highlighted then do a Right-Click or Control Click and select the option to Show in Finder
    Does it list the zipped file ?
    10:21 PM      Friday; February 10, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • To send video file with JMF

    Hi�
    I making an application that it needs to send a video file (of a server to a client). I implemented this using the mechanism of RTP implemented for the JMF. My server sends the archive, that my customer only shows the video for the half and does not appear the bar of control of time in player. And, later that client receives all the data (and she does not show, by the way), the user do not obtain to attend again what it finishes to receive� Somebody could help me in this? Necessary that my customer if holds of similar form to the Youtube. That is, he goes loading and showing how much he has, leaving, the user to manipulate bar of time of player e, also, leaving the user to again attend to the video if thus wanting�
    Tanks...

    Presumably, you're using the following sample code to create the AVI:
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/JpegImagesToMovie.html]
    And you're using the following sample code(or something similar) to send the AVI via RTP:
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/VideoTransmit.html]
    Regardless, instead of creating a DataSource from a MediaLocator that points to your AVI file, you can just use the DataSource that's generating the AVI files, and make that be the DataSource that's driving your RTP session.

  • Sending video file to mobile client

    Hi,
    Any tips on how to send a mp4 video file via TCP to a j2me client, running on a Nokia N95? I guess I have to convert the file into a byte array or similar?
    I have looked around but have not been able to find anything. I am fairly new to MIDP and Java programming.

    Implement the HTTP conversation on your server.

  • HT4864 Why can't I send a file over 11megs

    Ok I am a designer and I send large files and I zip them but when they are over 11megs it comes but half way through sending

    Welcome to the Apple Community.
    All email accounts have some sort of restriction on file size. Personally I thought the file size restriction on iCloud was larger than that, however there is always going to be some restriction.
    If you have large files that you wish to share with others, your best approach would be to place them on a server and send a link to your recipient, so that they can download them themselves.

  • Sending video files to an iPad

    I am constantly converting videos in .wmv so my manager can view and make corrections. If he had an iPad, what would be the best way to send quicktime files to him and for him to then make notes on the iPad and send that info back to me? Does Airdrop work with iPad? Or Airplay? Any apps that he can write notes on the video with timecode?

    If your using FCX to edit your media, there is a timecode element under the generator's tab. You can add this above your clip which adds a nice simple timecode to your media. You can then export this out as H.264, uploaded it to the iPad, and your manager can reference from this timecode to give you a shot list.
    I do this all the time and it works a treat

  • How to send simple file over network!

    Hi!!
    can any body guide me how to send a simple txt and other files (not media files) over net!
    what would i have to do to do so ?
    do i have to understand the files headers and got to use udp protocols if yes then plz tell me how
    Thank you!

    Well thanks for informing me...
    But what if i want to send a media file using udp not rtp protocol then should i have to so the same ?
    any one going to help me in other way ?
    Thank you !

  • Sending Zipped Files Across Sockets

    Hi,
    In my application, I have to send files across sockets. It's already being done, but I wanted to improve performance.
    Currently, we read in the File and send it across however many bytes at a time.
    Using java's zip utilities does anyone know of an example or have any ideas about reading the bytes in, compressing them, and then sending them across?
    thanks for any help in advance,
    Geoff

    Here's the server-side code which corresponds to the code I got from you for ClientSide (it has been tweaked to try to get rid of the error).
    forgive the lack of indentation (error to follow code)
    import java.io.*;
    import java.net.*;
    import java.util.zip.*;
    public class ReceiveData
    public static void main(String[] args)
    System.out.println("Receive Data");
    try
    ServerSocket serverSock = new ServerSocket(1400);
    Socket sock = null;
    while(true)
    System.out.println("before accept");
    sock=serverSock.accept();
    System.out.println("after accept");
    FileOutputStream fileOut = new FileOutputStream("d:\\javatests\\CompressTest\\test2.txt");
    byte[] buffer = new byte[4092];
    DataInputStream is = new DataInputStream(new GZIPInputStream(sock.getInputStream()));
    int totalBytes = 0;
    int bytesRead = is.read(buffer);
    totalBytes += bytesRead;
    while(bytesRead !=-1)
    System.out.println("inside loop");
         fileOut.write(buffer, 0, bytesRead);
         bytesRead = is.read(buffer);
         totalBytes += bytesRead;
    fileOut.flush();
    fileOut.close();
    is.close();
    System.out.println("totalBytes: " + totalBytes);
    catch(Exception e)
    e.printStackTrace();
    produces this error:
    java.net.SocketException: Connection reset
         at java.net.SocketInputStream.read(SocketInputStream.java:168)
         at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:213)
         at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:134)
         at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:87)
         at java.io.DataInputStream.read(DataInputStream.java:113)
         at ReceiveData.main(ReceiveData.java:45)
    and line 45 corresponds to the following line:
    int bytesRead = is.read(buffer); (the one before the while loop)
    thanks again to all,
    Geoff
    }

  • Sharing Video Files over iTunes

    Hi, in my house I have 2 Mac's and one PC, I'm sharing a large amount of video files from one of my macs that I have encode myself via iTunes 7. The other mac can playback all these video files fine over my network.
    My problem is with the PC it will play the smaller files (files under 350MB) but it refuses to play files that are any larger. Does anyone know how to fix this problem?

    Make sure you have the latest QT and iTunes on the PC - that might help... the PC side is a bit finiky but i have the same setup and it "seems" to be working ok for me so far.

  • How Do I Send A File Over An Air-Port Network

    I have a good knowledge of mac but ive only just set upa network, weve got three new iMacs with airport networks, i know the networks work because we can chat over iChat but how do i send a file from one computer to another.
    Also one of the computers is getting the internet from the school network via Ethernet cable, can te other macs share the internet from this computer over the Airport network.
    (we do not have a base station)
    please help

    ]but how do i send a file from one computer to another.
    You can do that over iChat if you want.
    To share files between the computers you need to network them.
    For networking (ie sharing files), System Preferences -> Sharing -> File Sharing
    Then in Finder ⌘ K and type in the name of the other computer.
    ]Also one of the computers is getting the internet from the school network via Ethernet cable, can te other macs share the internet from this computer over the Airport network.
    System Preferences -> Sharing -> Internet Tab
    Share your connection from built-in-ethernet
    To computers using Airport
    Airport Options button will allow you to add a WEP password.
    I would check with your school network administrator that you are allowed to do this.

  • I need a wireless option for older Mac desktop is there a good card or adapter  I want to transfer hd video files over the internet.  using a hotspot and wireless card in computer, any recommendations

    Is there a good card I can put in the computer, and use with a hotspot?  Any experience with uploading HD video files this way.  DSL hard wired connection is too slow

    As for the people on eBay, my only beef with them is that it has turned into a money hungry store instead of an auction place to pick things up inexpensively, like it used to be.
    Agreed.
    There is one, in particular, who really puts a dear price on his flashed cards.
    Not a friend to the Mac community.
    Of course, others see his prices, and say "Well, if he can, then so can I".....
    By the way, I have been noticing the same cards, only for PC for around $30-$40, which lead me to believe that those are the ones they are "flashing". Sorry if that's incorrect.
    It's OK.
    I watch for the prime cards all the time.
    Radeon 9800 Pro and XT PC cards have increased to the $50-$70 range.
    Pros used to be $20-$30, XTs $30-$60.
    Some guys here in Japan are trying to get $100 for Radeon 9800 Pro cards- vanilla PC versions.
    The glut in Mac options has inflated the flashable PC card market dramatically.....
    The Mac Edition Pro retailed for $200+.
    $100 isn't bad for that card flashed to Mac... the XT gets $20-$50 more.
    Try telling a PC guy that a Radeon 9800 is a $100 card..... the old boys laugh!
    Adding to this is the recent influx of "new" Mac users, PC modders/users buying cheap, used G4's, and the demand for upgrades has increased as supply decreased.
    If you see any rev 5.70 Geforce 7800 GS AGP cards, or any FireGl (Radeon) X800XT (unflashed) cards for less than $130, amazing is all that I have to say.
    $30-$40, and I'll take 20 of each- cash!
    Hmm, same goes for Geforce 6800 Ultra's......
    I am just a little (or a lot) frustrated with Apple and Apple vendors lately. For obvious and not so obvious reasons. Please accept my apologies as I go through this phase.
    We all have our days, and our reasons. At least, I know I do......
    Apology warmly accepted!
    Count me as frustrated, as well.
    The new machines sure look nice, but when I tally up the price of the software that I own, which can't be run on Intel or 10.6x Macs, my room full of G4's look a lot nicer.

Maybe you are looking for

  • Will iMac G5 2.1 run Final Cut Pro 4.0.1

    Tried to install and run Final Cut Pro 4.0.1 on my iMac G5 2.1ghz and it installed but would not run. I did get a message that read that some software or hardware was needed (AGB Graphics Card was listed in red) but I would think that the iMac had ev

  • Error 127 with iTunes on Windows XP SP3

    How to you fix the Windows XP SP3 error 127. This came also with another error "The procedure entry point AD:Ad ID_AquireMatchSlotIfNecessary could not be located in the dynamic link library iAdCore.dll. After several days and some hints from these w

  • Automate the Creation of, or Import Track Groups-Can Logic do this?

    As someone contemplating jumping ship from DP after 10 years, I was wondering if Logic can automate the process of creating or adding track groups that I use regularly. For example, if I demo a song with a drum loop and then want to add live drums, I

  • How to locate your Vaio Model Number

    In order to get the best support you can from fellow users of the forum it's important to always quote the model number when you have a question. The method for locating your model number depends on when the product was released. On very old models (

  • Get object type attribute value

    1 am trying binding Oracle Object types to java object types using the ORAData interface. I created a simple object type called att_mesg_type with the syntax create type att_mesg_type as object (subject varchar2(200),Text varchar2(1000)); I then crea