Bug: not closing fileinputstream when reading mimetype!!