title: Convert File to Blob in Dart Flutter
body: <pre><code>File sampleImage;
    Future getImage() async {
      var tempImage = await ImagePicker.pickImage(source: ImageSource.gallery);
  
      setState(() {
        sampleImage = tempImage;
      });
    }
  
  void submitValues(){
  Blob blob = new Blob(sampleImage);
  }
  </code></pre>
  
  <p>I need to convert the File into Blob in flutter in order to save in the database, I can't find any reference to do so. </p>