return mime type with result