...
See the Examples by API on the HDF5 Examples page for example programs that write and read compressed datasets using compression filters that are in the HDF5 library.
The FAQ Using Compression in HDF5 has links to information on compression, including how to read datasets with user defined compression filters.