How to copy an attachment from $FILE field using JAVA/CORBA

Hi, I am trying to copy an attachment from the $FILE field in an existing document to a new memo using JAVA/CORBA. Has this been done by anyone before?

Thanks,

Sunny Carrandi