title: Turning image into blob in React Native (Expo) and uploading to S3 bucket
body: <p>I have a camera component which I clicks a picture. I store the clicked picture using expo's FileSystem in the local cacheDirectory. Looks some thing like this:</p>
  
  <pre><code>onPictureSaved = async photo =&gt; {
      await FileSystem.moveAsync({
          from: photo.uri,
          to: `${FileSystem.cacheDirectory}test.jpg`
      });}
  </code></pre>
  
  <p>My next step is to my next stop is converting the image in the local cacheDirectory into a blob and upload the image into S3 via the <code>aws-sdk</code>: </p>
  
  <pre><code>var params = {
              Bucket: "my-bucket", 
              Key: 'test.jpg',
              Body: blob
             };
  
             s3.upload(params, function(err, data) {
              if (err) {
                  console.log(err);
              } // an error occurred
              else  { 
                  console.log(data);
              }         // successful response
  
            }
  </code></pre>
  
  <p>However, any methods or modules I install in order to accomplish this tiny step in the process hasn't been working at all. I can't use <code>RNFS</code>, <code>react-native-fetch-blob</code> or any other modules that require linking thanks to the expo client. I don't want to detach expo just for one thing. Is there any other way to accomplish this? </p>