use mime type in memory