这应该工作。
InputStream is = Context.openFileInput(someFileName);ByteArrayOutputStream bos = new ByteArrayOutputStream();byte[] b = new byte[1024];while ((int bytesRead = is.read(b)) != -1) { bos.write(b, 0, bytesRead);}byte[] bytes = bos.toByteArray();
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)