title: Disconnection of XMPP client while sending big size image, video and audio
body: <p>I have implemented xmpp using robbiehanson xmpp example. I am able to chat and also able to send images. The images which i am sending are converted to nsdata and further converted to Base64String, and later sending the string with </p>
  
  <p><code>[self.xmppStream sendElement:message];</code></p>
  
  <p>This way if the size of image is small i am able to send that instantly but if the size of images is bigger the two xmpp user gets disconnected and the file is not transferred. Same thing happens with video and audio. Though i am able to compress the images using</p>
  
  <pre><code>UIImageJPEGRepresentation(image,0.005);
  </code></pre>
  
  <p>But how to send the video and audio as the size would obviously be big. I have read documents on XEP - 0065 and XEP - 0096 but not able to implement it in a proper way. Please let me know why do the users gets disconnected, why i am not able to transfer heavy files using base64 and also share the code which would help me to transfer video and audio.</p>
  
  <p>Would really appreciate you help.</p>