Images handling in Lotus Notes

Hi,

I have one urgernt requirement. I need to create a Lotus notes form for user inputs. User will fill up some fields in this form. Among these fields some of them will be going to hold images. Like user can attach images from there local system. This is first Part of the requirement.

Second part is : I need to grab this data and push it to the DB2 table. I need to send images as well to the DB2 table.

Any one has done this thing before. If yes, then what should be the best approach? Do we need to make real time connection and save the data in DB2 table when user save the form? or we should write an agent which will run on scheduled time and grab this info and using some tool we can load the DB2 table?

Thanks so much in advance

L TYAGI