title: Load Image from Stream/StreamReader to Image OR RawImage component
body: <p>I'm using AWS Unity (v3.3.50.0): S3 SDK (AWSSDK.S3.3.3.5.4.unitypackage) downloaded from <a href="https://aws.amazon.com/mobile/sdk/" rel="nofollow noreferrer">https://aws.amazon.com/mobile/sdk/</a>.
  My Unity version is 5.5.1.</p>
  
  <p>I want to download an image placed on S3 bucket, bucket is configured and can be downloaded. And I see the string as data in response.</p>
  
  <p>But I cannot able to convert the returned StreamReader to UnityEngine.UI.Image.sprite OR UnityEngine.UI.RawImage.texture in S3 sample GetObject() function. </p>
  
  <pre><code>private void GetObject()
  {
      ResultText.text = string.Format("fetching {0} from bucket {1}", SampleFileName, S3BucketName);
      Client.GetObjectAsync(S3BucketName, SampleFileName, (responseObj) =&gt;
          {
              string data = null;
              var response = responseObj.Response;
              if (response.ResponseStream != null)
              {
                  using (StreamReader reader = new StreamReader(response.ResponseStream))
                  {
                      data = reader.ReadToEnd();
                  }
  
                  ResultText.text += "\n";
                  ResultText.text += data;
              }
              Debug.Log("GetObject: " + data);
          });
  }
  </code></pre>
  
  <p>help required regarding this :)</p>
  
  <p>Images on S3 bucket are in PNG format. But in future JPG, JPEG format support have to enable.</p>