블로그
- InputStream to ByteArrayOutputStream urlConnection = url.openConnection(); is = urlConnection.getInputStream(); baos = new ByteArrayOutputStream(); byte [] buffer = new byte[1024]; int len; while((len = is.read(buffer)) !
- java에서 zip파일 만들기 fileup"; String files[] = f.list(); // f object 에 있는 파일목록 // Create a buffer for reading the files byte [] buf = new byte[1024]; try { // Create the ZIP file String outFilename = "D:/outfile.zip"; ZipOutputStream
- 41번째 퍼즐 - 스트림 null; OutputStream out = null; try { in = new FileInputStream(src); out = new FileOutputStream(dest); byte [] buf = new byte[1024]; int n; while ((n = in.read(buf)) >= 0) { out.write(buf, 0, n); } } finally
- 용량 제대로 알고 지내자 Byte (바이트) 8 Bit = 1 Byte 파일이나 폴더 속성을 보면 보입니다. KB (킬로 바이트) 1024 Byte =1 Kb 많이 보이는 단위중 한개죠 MB (메가 바이트) 1024 Kb = 1 Mb 더 많이 보이는 단위 입니다.