How t otransfer file with smack library


I am trying to use chating feature into my application, and want to give file transfering functionality also with chat. So two user easily send file to each other as well as able to do text chating.I am using smack library into my application.

Now i am successfully implement text based chating between two users, but now i am confuse, that how to start implementation of file transferring between two users.

So any one can help me, that how can we implement file transfer feature with smack library.

Thanks in advance, and i am looking forward positively.