我有这个 :
fos = new FileOutputStream(new File(cdn.replace('/', File.separatorChar), request.getEntity().getNewfilepath()));我也试过这个:
fos = new FileOutputStream(new File(cdn, request.getEntity().getNewfilepath()));
但我收到一个错误:
java.io.FileNotFoundException: http:\cdn\test.jpg(文件名、目录名或卷标语法不正确)
任何建议我该如何解决?
cdn是网址:http://cdn
我想要实现的是将文件保存在http://cdn/test.jpg
慕标琳琳
繁花不似锦
随时随地看视频慕课网APP
相关分类