Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static async Task ReadObjectDataAsync()
- {
- string responseBody = "";
- try
- {
- GetObjectRequest request = new GetObjectRequest
- {
- BucketName = bucketName,
- Key = keyName
- };
- //THIS NEXT LINE HANGS!!!!
- using (GetObjectResponse response = await client.GetObjectAsync(request))
- using (Stream responseStream = response.ResponseStream)
- using (StreamReader reader = new StreamReader(responseStream))
- {
- string title = response.Metadata["x-amz-meta-title"];
Add Comment
Please, Sign In to add comment