比如ins是输入流(InputStream), outs是输出流(OutputStream):将
outs.write(IOUtils.getStreamAsByteArray(ins)); // org.apache.axiom.attachments.utils.IOUtils改为:
int read = 0;
byte[] buffer = new byte[1024];
while ((read = ins.read(buffer)) != -1){
outs.write(buffer, 0, read);
}应该能够解决。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货