title: How to send files using Smack?
body: <p>I am struggling with this code:</p>
  
  <pre><code>FileTransferManager manager = new FileTransferManager(connection)
  
  OutgoingFileTransfer transfer = manager.createOutgoingFileTransfer("gmailusername@gmail/Smack");
  
  
  try { 
    System.out.println("000"); 
    transfer.sendFile(new File("D:/cow.wav"), "Moo !"); 
    System.out.println("111"); 
  
    while(!transfer.isDone()) { 
      System.out.println(transfer.getProgress() + " is done!");    
      //System.out.println(transfer.getStreamID() + " is done!"); 
  
      try { 
        Thread.sleep(1000); 
      } 
      catch (InterruptedException e) { 
        // TODO Auto-generated catch block e.printStackTrace(); 
      }
    } 
  } 
  catch (XMPPException e) { 
    // TODO Auto-generated catch block e.printStackTrace(); 
  }
  </code></pre>
  
  <p>It seams that it can't send the file.</p>
  
  <p>Can anyone help me solve this problem ?</p>