ファイルのアップロ�`ド��
public void uploadFile(FormFile file, String savePath)
throws FileNotFoundException,IOException{
BufferedInputStream bis=null;
BufferedOutputStream bos=null;
try{
bis = new BufferedInputStream(file.getInputStream());
bos = new BufferedOutputStream(new FileOutputStream(savePath));
int b =0;
while((b = bis.read()) != -1){
bos.write(b);
}
}catch(Exception e){
}finally{
if(bis !=null) bis.close();
if(bos !=null) bos.close();
}
}
ファイルのダウンロ�`ド��
public void downloadFile(HttpServletRequest req,
HttpServletResponse res,
String filepath) throws IOException{
File file = new File(filepath);
res.reset();
res.setContentType("a