Non-Text MIME Output
PHP Manual

RPM Header Reading