Code for file reading at openfire server to store file in databse

Hi,

I am new to openfire server in my project i am using openfire for chating,while chating we are sending files to other chat client,i was tested that file transfer by using spark library.but i need to store that file in mysql database table,pls can u help me anyone how to store the file in to database.

Thanks&regards,

venkat