title: How to display image returned from fetch() method - react-native
body: <p>I have the following code to retrieve an image from an API</p>
  
  <pre><code>await fetch('https://example.com/api/user/fileaccess', {
      method: 'POST',
      headers: {
        Accept: '*',
        'Content-Type': 'application/json',
        'token':'xxxxxxxxxxxxxxxxxxxxxxxx'
      },
      body:  JSON.stringify({"applicantid": xxxx, "user_secret": "xxxxxxxxxxx","fileid":xxxxx}),
    }).then((response) =&gt; {
      console.log(response);
    }); 
  </code></pre>
  
  <p>The request was completed and i got log in my console.</p>
  
  <blockquote>
    <p>{"_bodyBlob": {"_data": {"__collector": [Object], "blobId":
    "xxxxx-xxxx-xxx-xxxx-xxxxx", "offset": 0, "size": 953328}},
    "_bodyInit": {"_data": {"__collector": [Object], "blobId":
    "xxxxx-xxxx-xxxx-xxxx-xxxxx", "offset": 0, "size": 953328}},
    "headers": {"map": {"cache-control": "max-age=2592000", "connection":
    "Keep-Alive", "content-type": "image/jpeg", "date": "Tue, 04 Feb 2020
    10:34:14 GMT", "expires": "Thu, 05 Mar 2020 10:34:14 GMT",
    "keep-alive": "timeout=5, max=100", "pragma": "public", "server":
    "Apache", "transfer-encoding": "chunked"}}, "ok": true, "status": 200,
    "statusText": undefined, "type": "default", "url":
    "<a href="https://example.com/api/user/fileaccess" rel="nofollow noreferrer">https://example.com/api/user/fileaccess</a>"}</p>
  </blockquote>
  
  <p>My question is, How to display this data as an image in my app? Is it possible to convert a base64 from this data?</p>