title: Displaying mht file in iframe
body: <p>I need to display mht file stored in zip archive in frame on the page</p>
  <pre><code>  &lt;iframe src=&quot;@Url.Action(&quot;LoadInstrucion&quot;,&quot;Pharmacy&quot;, new {id= Model.Instrukciya })&quot;&gt;&lt;/iframe&gt;
     
  </code></pre>
  <p>Action in MVC Controller returning file</p>
  <pre><code>public ActionResult LoadInstrucion(string id)
  {
    var bytes = InstructionsLoader.LoadInstrucion(id);
    return File(bytes, &quot;multipart/related&quot;);
  }
  </code></pre>
  <p>Action for getting byte array from file</p>
  <pre class="lang-cs prettyprint-override"><code>public static byte[] LoadInstrucion(string zipFileName)
  {
      string zipfilePath = $@&quot;{HttpContext.Current.Request.PhysicalApplicationPath}Content\inst\{zipFileName}.zip&quot;;
      if (File.Exists(zipfilePath))
      {
          using (var zipStream = new FileStream(zipfilePath, FileMode.Open))
          using (var archive = new ZipArchive(zipStream, ZipArchiveMode.Read))
          {
              if (archive.Entries.Count &gt; 0)
              {
                  var file = archive.Entries[0];
                  var stream = file.Open();
                  using (var ms = new MemoryStream())
                  {
                    stream.CopyTo(ms);
                    return  ms.ToArray();
                  }
              }
          }
      }
      return new byte[0];
  }
  </code></pre>
  <p>If I navigate to Url I see the requested mht file, but it is not displayed in iframe. In Dev console I get warning:</p>
  <blockquote>
  <p>Attempted to load a multipart archive into an subframe</p>
  </blockquote>