728x90 분류 전체보기3147 Snappy 압축 라이브러리 ✨ 1. Maven 의존성 추가 org.xerial.snappy snappy-java 1.1.10.1 Gradle이면:implementation 'org.xerial.snappy:snappy-java:1.1.10.1'✨ 2. 기본 사용법 (문자열 압축 & 해제)import org.xerial.snappy.Snappy;public class SnappyExample { public static void main(String[] args) throws Exception { String originalText = "Hello, this is a long text that needs compression!"; // 압축 byte[] compressed .. 2025. 4. 28. 자바 서버 → Snappy 압축 → 리액트 프론트에서 풀기 1. 서버 (Java) - Snappy 압축해서 전송하기@RestController@RequestMapping("/api")public class CompressionController { @GetMapping("/compressed-data") public ResponseEntity getCompressedData() throws Exception { String originalData = "이것은 서버에서 보내는 테스트 데이터입니다!"; byte[] compressed = Snappy.compress(originalData.getBytes(StandardCharsets.UTF_8)); return ResponseEntity.ok() .. 2025. 4. 28. in shape in shape : 건강이 좋은 상태인 2025. 4. 28. helpless helpless : 무력한 2025. 4. 28. after school after school : 방과 후에 2025. 4. 27. 이전 1 2 3 4 ··· 630 다음 728x90