In the future, please UseCodeTags when posting code. Also, it's very helpful to tell us what sort of problem you're having. That is, give us error messages and stack traces if there are any, or at least tell us what you're expecting and what's actually happening. In this case, there may be a problem finding the file in the lib directory, or it may be a problem with the mime type you're using, or you may not even be hitting the servlet. We need more information from you.