为了账号安全,请及时绑定邮箱和手机立即绑定

sae 怎么上传文件 java api

sae 怎么上传文件 java api

JVM
阿晨1998 2018-11-25 00:00:29
sae 怎么上传文件 java api
查看完整描述

1 回答

?
茅侃侃

TA贡献1842条经验 获得超21个赞

FileOutputStream fos =null;
if("appname".equals(appName)){//本地环境
fos = new FileOutputStream(
this.getPhysicalPath(this.url));
}else{
fos = new FileOutputStream("saestor://image/"+url);

}
BufferedInputStream bis = new BufferedInputStream(this.inputStream);
byte[] buff = new byte[128];
int count = -1;

查看完整回答
反对 回复 2018-12-08
  • 1 回答
  • 0 关注
  • 634 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信