BINARY 파일을 읽고이를 클라이언트에게 보내는 서블릿이 있습니다.바이너리 파일을 byte []로 읽은 다음 서블릿에서 char []로 보냄
byte[] binaryData = FileUtils.readFileToByteArray(path);
response.getWriter().print(new String(binaryData));
NON BINARY 파일에서 작동합니다. 이진 파일을 가지고있을 때 receive file length bigger than origin or received file not the same
이됩니다. 어떻게 바이너리 데이터를 읽고 보낼 수 있습니까?
감사합니다.
사람, 너 멋지다! –