Hi Maciej,
Thanks for your reply.
I am actually trying with custom workitemHandler with apache commons mail functionality.
Modified form to display a Browse button (<input type = "file" name="FormObject"/>) on the form UI, and created a Process Variable with the name "FormObject".
Inside WorkItem in my custom workItemHandler class I am getting "FormObject" as a string with the content of the text file uploaded.(not getting as a File object).
(And not able to upload PDF,XLS... file formats)
My requirement is to browse the file and send as an attachment to the mail.
Please suggest me on this...