Guest User

Untitled

a guest
Oct 26th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. if (!item.isFormField()) {
  2.  
  3. String value = (String) item.getName();
  4. String videoName = new String(
  5. value.getBytes("iso-8859-1"), "UTF-8");
  6. if (videoName != "")
  7. item.write(new File(UPLOAD_DIRECTORY
  8. + videoName));
  9. arrayList.add(videoName);
  10.  
  11. else if (item.isFormField()) {
  12. String inputName = (String) item.getFieldName();
  13.  
  14. String value = (String) item.getString();
  15. value = new String(
  16. value.getBytes("iso-8859-1"), "UTF-8");
  17. hashMap.put(inputName, value);
  18.  
  19. }
Add Comment
Please, Sign In to add comment