Bot File Reciever / File Transfer

Hi Guys

I am trying to build a bot which is connected as a component to an openfire 3.9.3 server using smack 4.1.0.
This smack has to receive a file an process it.

The thing it’s that spark client says “The user is offline. Will auto-send “xyz.jpg” when user comes back online”.
And there is no transfer.

What am i doing wrong?
How can i enable the presence on a component?

Any help will be apreciate…

did u make this bot? if yes please share it.