Why do you do the following: byte[] filedata=null; setFiledata(filedata); The attribute fileData is never set then. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126603#4126603 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126603