public static byte[] getBytes(InputStream is) throws IOException { int len; int size = 1024; byte[] buf;
www.java2s.com