title: divide base64 encoded string into small chunks
body: <p>i am trying to send a <code>base64 encoded</code> data to server but at a time i can send <code>65535</code> bytes of data to server and my string size of <code>base64 encoded</code> image is <code>111751</code> bytes.</p>
  
  <p>so how can i divide the content of <code>base64 encoded</code> string into small piece of <code>65535</code> bytes of block in javascript or jquery.</p>
  
  <p>i am using <code>jquery.base64.js</code> </p>
  
  <pre><code>function readImage(input) {
      if ( input.files &amp;&amp; input.files[0] ) {
          var FR= new FileReader();
          FR.onload = function(e) {
  
          var blockString = e.target.result;
              // here its showing 111751 bytes
          console.log(blockString.length); 
  
  
  
  
          };       
  
          FR.readAsDataURL( input.files[0] );
  
  
      }
  }
  </code></pre>