title: How can one generate and save a file client side using Blazor?
body: <p>I want to have a SPA that's doing all the work client side and even generating some graphs/visuals.</p>
  
  <p>I'd like to be able to have the user click buttons and save the visuals, tables, and other things from the page (that are both seen and not seen, so right click save or copy/paste is not always an option).</p>
  
  <p>How do I call a function from the webassembly/blazor library, get it's results and save it as a file on the client side?</p>
  
  <p>the idea is something like this...?</p>
  
  <p>cshtml</p>
  
  <pre><code>&lt;input type="file" onchange="@ReadFile"&gt;
  
  &lt;input type="file" onchange="@SaveFile"&gt;
  
  @functions{
  object blazorObject = new blazorLibrary.SomeObject();
  
  void ReadFile(){
      blazorObject.someFunction(...selectedFile?...);
  
  }
  void SaveFile(){
      saveFile(...selectedFile..?)
  }
  
  }
  </code></pre>