private static String streamToString(InputStream is) { String result = ""; try { byte[] bytes = new byte[0]; bytes = new byte[is.available()]; is.read(bytes); result = new String(bytes); } catch (Exception e) { } return result; }
stream转string
猜你喜欢
转载自blog.csdn.net/yongwoozzang/article/details/80594016
今日推荐
周排行