Hot to store transferred file in mysql database at openfire server


Pls help me urgent, how can we store transferred files in mysql database table at openfire server.i need code for read file data byte by byte,i did debug in openfire i couldn’t able to find where the code is available.pls help me where file data read code is there in which file in openfire src code.