package com.hotel.utils; import java.io.ByteArrayOutputStream; import java.io.InputStream; public class StreamTool { public static byte[] read(InputStream inStream) throws Exception{ ByteArrayOutputStream outStream = new ByteArrayOutputStream(); byte[] buffer = new byte[1024]; int len = 0; while( (len = inStream.read(buffer)) != -1 ){ outStream.write(buffer, 0, len); } inStream.close(); return outStream.toByteArray(); } }
最近下载更多
annazhang LV29
2021年9月25日
tanyc2008 LV6
2020年12月1日
xiehao1020 LV1
2020年3月5日
李慧都 LV2
2019年1月24日
122374655 LV1
2017年3月27日
zouquan1027 LV2
2016年5月22日
zhangleisz LV1
2016年2月17日
zw5097 LV23
2016年2月15日
George LV26
2014年3月1日
最近浏览更多
冰糖雪里 LV3
2023年11月10日
qingfengqingzhou LV1
2022年4月22日
JSPMVC
2021年12月9日
暂无贡献等级
annazhang LV29
2021年9月25日
dengkaixing LV2
2021年5月26日
tanyc2008 LV6
2020年12月1日
152162355 LV3
2020年5月25日
lsq54365 LV14
2020年5月20日
qianyunjie LV8
2020年4月14日
送快递俊 LV3
2020年4月14日