title: How to convert byte array to blob in javascript for angular?
body: <p>I am getting excel file from backend in the form of byte array.
  I want to convert that byte array into blob and then into file type.
  Please take a look at following code which i have used.</p>
  <pre><code>this.getFile().subscribe((response)=&gt;{
  const.byteArray=new Uint8Array(atob(response.data).split('').map(char)=&gt;char.charCodeAt(0))
  this.pdfResult=new(Blob[byteArray],{type:&quot;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet&quot;});
  let file=new File([this.pdfResult],&quot;sample.xlsx&quot;)
  });
  </code></pre>