response.setContentType("application/octet-stream");
response.setHeader("Content-disposition", "attachment;filename=layout.vk");
response.getWriter().write(getParameter("downloadString", fileItems));
} else if ("upLoadLayoutFile".equals(getParameter("op", fileItems))) {
fileItems = UploadHelper.getInstance().doUpload(fileItems);
new VkFileReader().writeToResponse(response, fileItems);
}
} catch (IOException e) {
e.printStackTrace();
}
}