upload.setHeaderEncoding("UTF-8");
String message = null;
Map<String, String> parameters = new HashMap<String, String>();
List<UploadItem> uploadItems = new ArrayList<UploadItem>();
try {
FileItemIterator iter;
try {
iter = upload.getItemIterator(request);
FileItemStream imageFileItem = null;
String folder = null;
InputStream stream = null;
InputStream filestream = null;
byte[] fileData = null;
parameters.put(IMAGE_UPLOAD_PAGE_ID,
(String)session.getAttribute(
IMAGE_UPLOAD_PAGE_ID));
if (request.getParameter("CKEditorFuncNum") != null) {
ckeditorFuncNum = request.getParameter("CKEditorFuncNum");
}
while (iter.hasNext()) {
FileItemStream item = iter.next();
stream = item.openStream();
if (item.isFormField()) {
parameters.put(item.getFieldName(),
Streams.asString(stream, "UTF-8"));
} else {