SharePoint

Dears,

i would like to upload the files to sharepoint using custom BPM, so what are the methods i need to add.
from the trace i found 1.SpFileExists 2. SpUploadFile
and also am unable to bring the object for the attachment imple, Ice.Proxy.BO.AttachmentImpl what are the parameters need to pass.