title: How i can use Tabulator's downloadReady: callback function?
body: <p>How i can properly use of <code>downloadReady:function(fileContents, blob){}</code> in order to upload an xlsx file to server side?</p>
  
  <p>what are the preparations should be made at client side before send file? ex. conversion to Uri maybe? and what steps needed to decode file to server side? from Uri to xlsx file.</p>
  
  <p><strong>fileContents</strong> returns ArrayBuffer() {} as result which consist of [[Int8Array]] and [[Uint8Array]].
  and <strong>blob</strong> returns data type.</p>
  
  <p>The goal is to take the file from client and upload it to server (node.js) then save it locally with fs.write().</p>
  
  <p>if you have any snippet code will be helpful just to realize the steps!</p>
  
  <p>Thanks in advance!</p>
  
  <p><strong>UPDATE</strong>
  What i've used without success! <strong>CLIENT SIDE</strong></p>
  
  <pre><code>downloadReady:function(fileContents, blob){
  
  var xlsxObject = new Object;
  xlsxObject.data = fileContents;
  sendObjectToServer(xlsxObject);
  
  return blob;
  },
  
  </code></pre>
  
  <p><strong>SERVER SIDE</strong></p>
  
  <pre><code>fs.writeFile("test.xlsx", xlsxObject,{encoding:'base64'}, (err) =&gt; {
               if (err) console.log(err);
               console.log("Successfully Written to File xlsx.");
  });
  </code></pre>
  
  <p>the file is written but empty with undefined value</p>
  
  <p><strong>[SOLVED]</strong></p>
  
  <p>I finally found a solution, if you are interested check this <a href="https://stackoverflow.com/q/58271078/4636906">post</a></p>