2.2.3.8 WSS Compressed Structures

The WSS Compressed structure uses the ZLIB Compressed Data Format Specification version 3.3 to compress a binary or string value to a binary format when save it in to the database.

The header of the WSS Compressed structure is specified as follows.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

ID

Version

FileHeaderSize

OrigSize

Compressed Binary string (variable)

...

ID (2 bytes):  MUST be 0xA8A9.

Version (2 bytes):  MUST be 0x3031 (ASCII "01")

FileHeaderSize (4 bytes):  A 4-byte, unsigned integer specifying the size of the header. The value is 0x0C000000.

OrigSize (4 bytes):  A 4-byte, unsigned integer specifying the size of the original content. It MUST be the size of the uncompressed stream before compression.

Compressed Binary string (variable):  The compressed string using zlib compression.