snow-line

    자바 파일 업로드 1

    자바 파일 업로드 NIO 방식 처리

    파일 업로드는 보통 IO방식으로 처리하는데 경우에 따라서 NIO방식을 사용하는 경우가 있다. Nio 방식은 채널방식으로 양방향 입출력이 가능하고 복수 개 단위의 버퍼를 사용해서 입출력 속도가 빠르다. private static void useNormalIO() throws Exception { File file = new File("/home/developer/test.iso"); File oFile = new File("/home/developer/test2"); long time1 = System.currentTimeMillis(); InputStream is = new FileInputStream(file); FileOutputStream fos = new FileOutputStream(oFile)..

    개발 2020.11.29
    1
    더보기
    반응형
    • 분류 전체보기 (178)
      • 취업 (5)
      • 개발 (53)
      • 면접 - 자바 (54)
      • 면접 - 스프링프레임워크 (12)
      • 면접 - 네트워크 (11)
      • 면접 - 데이터베이스 (29)
      • 면접 - 운영체제 (14)

    Tag

    특수문자 치환, HashMap, oracle, Java, tomcat, JVM, mariaDB, 데이터베이스면접질문, 자바면접질문, java list integer string 변환, MySQL, 개발자 취업, 스프링프레임워크, 운영체제, 데이터베이스, 신입 개발자 취업, 개발자 면접 질문, 자바 면접 질문, 네트워크, 개발자면접질문,

    최근글과 인기글

    • 최근글
    • 인기글

    Archives

    방문자수Total

    • Today :
    • Yesterday :

    Copyright © Kakao Corp. All rights reserved.

    티스토리툴바