Extract the mime type from a base64 string