title: Photo Capture stream to SoftwareBitmap
body: <p>My Code: </p>
  
  <pre><code>var stream = new InMemoryRandomAccessStream();
  ImageEncodingProperties properties = ImageEncodingProperties.CreateJpeg();
  await _mediaCapture.CapturePhotoToStreamAsync(properties, stream);
  IBuffer buffer = new byte[stream.Size].AsBuffer();
  await stream.ReadAsync(buffer, (uint)stream.Size, InputStreamOptions.None);
  SoftwareBitmap sfbmp = SoftwareBitmap.CreateCopyFromBuffer(buffer, BitmapPixelFormat.Bgra8, 4176, 3120); // Exception is thrown here
  </code></pre>
  
  <p>Exception: </p>
  
  <blockquote>
    <p>Insufficient memory for response</p>
  </blockquote>
  
  <p>Honestly, I don't know anything about bitmap buffers so can anyone help me?</p>