Grassroots DICOM is a C++ library for dealing with DICOM medical files. It is automatically wrapped to C#/python/java (using swig). It supports RAW,JPEG,J2K,JPEG lossless,RLE and deflate(zlib). It also comes with DICOM Part 3,6 & 7 of the standard as XML files.
GDCM also comes with command-line DICOM utilities to examine and modify headers, compare or anonymise files, convert transfer syntax and image encoding. DICOM network operations as an SCU (C-FIND, C-ECHO, C-STORE, C-MOVE) can also be performed on the command line.