Recreating attachment files

Hi,

I want to read the information from the ‘attachments’ table in the database
and recreate a copy of the files stored there (maybe by writing some Java
program). Any pointers for how to go about this will be of great help, since
I am new to RT and don’t have much experience with database either.

Thanks and regards

-Ashish