I am using smack api in my chat application and i have implement some code for sending file "OutgoingFileTransfer". But it takes little bit more time to upload file.
So other user can not get instant update. I found two methods in documentation. please let me know which is better and what is difference.
|sendFile(String fileName, long fileSize,String description)|
|sendStream(final InputStream in, final String fileName, final long fileSize, final String description)|
SendStream is useful for sending file instantly ?