please try to use
[code][/code] to keep formatting of your code.
NullPointerException means you tried to use the class file (line 71: file.getInputStream()), but probably it was null. You would need to check if this call
UploadedFile myfile = (UploadedFile)this.getFile(); returned valid myfile.
_____________________________________
If someone helps you, or you approve of what's posted, click the "Add to Reputation" button, on the left of the post.
Happy with solution ... mark as
SOLVED
(located in the "thread tools")