Processing and formatting for various mime types.