title: Get Image datatype from database and show it when need to print
body: <p>I Get an image from SQL database. Code in controller is </p>
  
  <pre><code>  public ActionResult RetrieveImage(Guid id)
      {
          byte[] cover = GetImageFromDataBase(id);
  
          if (cover != null)
          {
              return new FileContentResult(cover, "image/jpeg");
          }
          else
          {
              return null;
          }
      }
  
      public byte[] GetImageFromDataBase(Guid id)
      {
          //UserProfile aUser = new UserProfile();
          Chamber aChamber = new Chamber();
          aChamber = chamberService.GetChamber(id);  // From here i got the image as a datatype[] base64 value
          byte[] cover = aChamber.Logo;
          return cover;
      }
  </code></pre>
  
  <p>and my view page (where i can show this image) is</p>
  
  <pre><code> &lt;img ng-src='/Chamber/RetrieveImage/{{chamberDoctorId.Id}}' id="photo-id-edit" height=20 width=200 style="border:2px solid black" /&gt;
  </code></pre>
  
  <p>Problem is in my view page image show successfully ,,but when i want to print this image as using <code>function PrintElem(elem) {
          //$scope.ForEdit = false;
          Popup($(elem).html());
      }</code></p>
  
  <pre><code> only the boarder of the image are found,,but it can't show the image,,,how can i show my image in my print page,,why it isn't show in there??
  </code></pre>