tika 썸네일형 리스트형 이미지 파일의 판단 :: checkImageType(File file) 파일이 이미지 타입인지 확인하기 위해 Files.probeContentType() 사용하여 메소드를 만들었으나 이미지 파일인데도 false 를 반환하였다. private boolean checkImageType(File file){ try{ String contentType = Files.probeContentType(file.toPath()); return contentType.startsWith("image"); } catch(IOException e){ e.printStachTrace(); } return false; } 디버그를 해보니 Files.probeContentType() 가 null 을 반환하여 false 가 리턴됨. 해결책을 찾기 위해 검색을 해봤으니 버그라고 한다. https://st.. 이전 1 다음