Hi Experts,
1) I have used SO_OBJECT_INSERT to create the attachment.
2) Attachment is getting created properly (PDF, JPG, DOC)
errormsg.png