java.io.InputStreamã«ã¯byteé åãå¼æ°ã«åãï¼byteé åã«ãã¼ã¿ãèªã¿è¾¼ãã§æ ¼ç´ããreadã¡ã½ãããããã¾ããï¼ä¸åº¦ã®å¼ã³åºãã§ã¹ããªã¼ã ã®çµããã¾ã§å ¨ã¦èªã¿è¾¼ããã¨ã¯ä¿è¨¼ããã¾ããï¼ãã¼ã¿ãå ¨ã¦èªã¿è¾¼ãã§byteé åã«æ ¼ç´ãã¦è¿ãreadAllã¡ã½ããã¯æ¬¡ã®ããã«æ¸ãã¾ãï¼ public byte[] readAll(InputStream inputStream) throws IOException { ByteArrayOutputStream bout = new ByteArrayOutputStream(); byte [] buffer = new byte[1024]; while(true) { int len = inputStream.read(buffer); if(len < 0) { break; } bout.write(buffe
{{#tags}}- {{label}}
{{/tags}}