title: NodeJS - How to download from a blob?
body: <p>How can I return a file from a BLOB column using NodeJS?</p>
  
  <p>I'm using the <code>oracledb</code> library to handle the database operations and I have the following code:</p>
  
  <pre><code>async function getFile(req, res) {
  
     let filename = req.params.filename;
     let file = await selectFileFromDb(filename);
     file = file.rows[0][0]; //Column that contains the blob content
  
     //I would like to return something like this
     res.download(file);
  
  }
  </code></pre>
  
  <p>What should I do to read the BLOB content from the column and return as a download to the requester?</p>
  
  <p>Thank you.</p>