Package org.vosao.utils

Examples of org.vosao.utils.FileItem


            stream = item.openStream();
            if (item.isFormField()) {
              parameters.put(item.getFieldName(),
                Streams.asString(stream, "UTF-8"));
            } else {
              files.add(new FileItem(item,
                StreamUtil.readFileStream(stream)));
            }
          }
        } catch (FileUploadException e) {
          logger.error(e.getMessage());
View Full Code Here


    for (FieldEntity field : fields) {
      if (field.getFieldType().equals(FieldType.FILE)
        && values.containsKey(field.getName())
        && !StringUtils.isEmpty(values.get(field.getName()))) {
          String filepath = values.get(field.getName()).replace("/file", "");
          result.add(new FileItem(
              field.getName(),
              FolderUtil.getFileName(filepath),
              getFileBusiness().readFile(filepath)));
      }
    }
View Full Code Here

TOP

Related Classes of org.vosao.utils.FileItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.