title: Asp .net core how to display RTF document file in page view cshtml
body: <p>Please I need some help.</p>
  
  <p>I want to build an online exam web application, so the question files as .rtf stored in database, then when the exam held, us as participant can see the questions by the button list in page.</p>
  
  <p>How I can show/display any .RTF file document (from my database) to page view (.cshtml) ?</p>
  
  <pre><code>public class Exam_Question
          {
              ....
              public byte[] Question_File { get; set; }
          }
  </code></pre>
  
  <p>I have stored the file in database.</p>
  
  <p>Then in controller I call the model.</p>
  
  <pre><code>public async Task&lt;IActionResult&gt; Details(int? id)
  {
       var exam_Question = await _context.Question.SingleOrDefaultAsync(m =&gt; m.ID == id);
       return View(exam_Question);
  }
  </code></pre>
  
  <p>Then in page view I did try this.</p>
  
  <pre><code>&lt;iframe src="data:@Model.Question_File; base64, @Convert.ToBase64String(Model.Question_File)"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>the result like this image : <a href="https://i.stack.imgur.com/fVIjR.png" rel="nofollow noreferrer">IFrame tag with base64 file</a></p>
  
  <p>I want to display at least at same bold, size, paragraph, equation, etc format like in Word App.</p>