Guest User

Untitled

a guest
Jun 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. static async Task ReadObjectDataAsync()
  2. {
  3. string responseBody = "";
  4. try
  5. {
  6. GetObjectRequest request = new GetObjectRequest
  7. {
  8. BucketName = bucketName,
  9. Key = keyName
  10. };
  11. //THIS NEXT LINE HANGS!!!!
  12. using (GetObjectResponse response = await client.GetObjectAsync(request))
  13. using (Stream responseStream = response.ResponseStream)
  14. using (StreamReader reader = new StreamReader(responseStream))
  15. {
  16. string title = response.Metadata["x-amz-meta-title"];
Add Comment
Please, Sign In to add comment