# US 2012/0268298 A1 · Method and apparatus for compressing and decompressing block unit data

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2012/0268298 A1
- Document ID: US20120268298A1
- Status: Published application
- Kind: A1
- Application number: 13/380,751
- Filed: 2010-08-25
- Published: 2012-10-25
- Earliest claimed: 2009-09-04
- Assignees: ESTsoft Corp.
- Inventors: Yun-Sik Oh
- Web page: https://patentgrep.com/patent/US20120268298A1

## CPC

- H03M 7/3091: {Data deduplication}
- H03M 7/6088: {according to the data type}
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)

## Abstract

An apparatus for compressing and decompressing data is disclosed. The apparatus for compressing data includes a block setting unit that divides data of at least one original file into two or more blocks, a compression unit that generates block compression data by applying a compression algorithm to data corresponding to at least one block among blocks divided by the block setting unit, and a compression file generation unit that generates a block header and the block body of the block for each block divided by the block setting unit, in which the block body includes the block compression data if the block is compressed by the compression unit or includes the original data of the block if the block is not compressed the by compression unit.

## Claims

### Claim 1

An apparatus for compressing data, the apparatus comprising:
a block setting unit that divides data of at least one original file into two or more blocks;
a compression unit that generates block compression data by applying a compression algorithm to data corresponding to at least one block among blocks divided by the block setting unit; and
a compression file generation unit that generates a block header and the block body of the block for each block divided by the block setting unit,
wherein the block body includes the block compression data if the block is compressed by the compression unit or includes the original data of the block if the block is not compressed the by compression unit.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the block header includes identification information of the compression algorithm applied to the compression of the block body of the block.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein the block header includes identification information of the compression algorithm where a flag meaning “not compressed” is set if the block body of the block is the original data of the block.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the block header includes the data size of the block body of the block before compression and the data size after compression.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the data that shows the data size of the block body before compression and the data size after compression has a four byte length, respectively.

### Claim 6 (depends on 5)

The apparatus of claim 5, wherein the block setting unit divides the original file into two or more blocks of less than 2 Gigabytes if the size of the original file exceeds 4 Gigabytes.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein the compression file includes original file headers including information on the original file as many as the number of files, and the file headers include data that shows identification information within the compression file and the size of the original file.

### Claim 8 (depends on 1)

The apparatus of claim 1, wherein the compression file includes the original file header extension field including additional information on the original file that is not included in the original file header, and the original file header extension field includes the path of the original file, the comments on the original file, and the file information based on the file system of the operating system, and the encryption information of the original file.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein the path data of the original file and the comments data about the original file include at least one of whether encrypted or not and letter encoding information.

### Claim 10 (depends on 8)

The apparatus of claim 8, wherein the path data of the original file includes a flag on whether the path of the original file is written as a relative path or an absolute path and identification information within the compression file of the original file that can refer to the patent path if the path of the original file is written as a relative path.

### Claim 11

An apparatus of restoring compression data, the apparatus comprising:
a compression file generation unit that loads the compression file including two or more block header pairs including a block body and information on the block body, and extracts the block body;
a block compression restoration unit that restores compression of the block body that forms a pair with the block header using information on the block body included in the block header; and
an original file generation unit that generates the original file by connecting the block body whose compression is restored by the block compression restoration unit.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein the block header includes identification information on the compression algorithm applied to compression of the block body, and the block compression restoration unit restores compression of the block body that forms a pair with the block header using compression restoration algorithm corresponding to the compression algorithm according to identification information of the compression algorithm included in the block header.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the block compression restoration unit provides the block body itself that forms a pair with the block header to the original file generation unit if the identification information of the compression algorithm included in the block header is a flag that means that the identification information has not been compressed.

### Claim 14

A method of compressing data, the method comprising:
generating block compression data by dividing data of at least one original file into two or more blocks and applying a compression algorithm to data corresponding to at least one block among the divided blocks; and
generating the compression file that includes the block header and the block body of the block for each divided block,
wherein the block body includes the block compression data if the block is compressed by the compression unit or includes the original data of the block if the block is not compressed by the compression unit.

### Claim 15

A method of restoring compression data, the method comprising:
extracting a block header and a block body by loading the compression file including two or more block header pairs including the block body and information on the block body, and restoring compression of the block body that forms a pair with the block header using information on the block body included in the block header; and
generating the original file by connecting each compression-restored block body.

### Claim 16

A computer-readable recording medium including functions of:
dividing data of at least one original file into two or more blocks;
generating block compression data by applying a compression algorithm to data corresponding to at least one block among the blocks; and
generating a compression file that includes the block header and the block body of the block for each divided block,
wherein the block body includes the block compression data if the block is compressed by the compression unit or includes the original data of the block if the block is not compressed by the compression unit.

### Claim 17

A computer-readable recording medium including the functions of:
extracting a block header and a block body by loading a compression file including two or more block header pairs including information on the block body and information on the block body;
restoring compression of the block body that forms a pair with the block header using information on the block body included in the block header; and
generating the original file by connecting each compression-restored block body.
