private InputStream getStream ( List < FileItem > items ) throws IOException { for ( FileItem i : items ) { if ( ! i . isFormField ( ) && i . getFieldName ( ) . equals ( CONTENT_PARAMETER ) ) { return i . getInputStream ( ) ; } } return null ; }
Gets uploaded file as stream .