title: base64.encode Not Encoding The whole File , Missing Parts file Encoding Flutter Dart ERROR
body: <p>i am using following code to encode PDF file to base 64 </p>
  
  <pre><code>                File f = new File(_path);
  //              String base64pdf = base64Encode(f.readAsBytesSync());
                  String base64pdf = base64.encode(f.readAsBytesSync());
                  String fileName = _fileName;
                  print('base64pdf: '+base64pdf);
  </code></pre>
  
  <p>I tried to encode the pdf file on here: <a href="https://base64.guru/converter/encode/file" rel="nofollow noreferrer">encoding website</a>
  <br>the result from the website shows that the base64 encoder inside flutter(dart) is trimming a big section of the String Generated and give only little first part of it ?<br>
  how to solve that , is this related with byte type?</p>