code: @Override
      protected FileInfo getFileInfoFromInputDataImpl(HTTPRequest inputData)
      {
          //get content
          Map<String,ContentPart<?>> contentPartsMap=this.getContentPartsAsMap(inputData);
  
          //get file info
          FileInfo fileInfo=null;
          ContentPart<?> contentPart=contentPartsMap.get(this.fileContentParameter);
          if(contentPart==null)
          {
              throw new FaxException("File info not provided.");
          }
          ContentPartType contentPartType=contentPart.getType();
          switch(contentPartType)
          {
              case FILE:
                  File file=(File)contentPart.getContent();
                  fileInfo=new FileInfo(file);
                  break;
              case BINARY:
                  byte[] data=(byte[])contentPart.getContent();
  
                  //get file name
                  String fileName=this.getContentPartAsString(contentPartsMap,this.fileNameParameter);
  
                  fileInfo=new FileInfo(fileName,data);
                  break;
              default:
                  throw new FaxException("Unsupported content part type: "+contentPartType);
          }
  
          return fileInfo;
      }
docs: This function returns the file info from the request data.
  
  @param   inputData
  The input data
  @return  The file info