public Task<SamplingPointImage> SamplingPointImageGetAsync(string surveyId, string samplingPointId)
{
var uri = GetSamplingPointImageUri(surveyId, samplingPointId, null);
return Client.GetAsync(uri)
.ContinueWith(
responseMessageTask => new SamplingPointImage
{
Content = responseMessageTask.Result.Content.ReadAsByteArrayAsync().Result,
FileName = responseMessageTask.Result.Content.Headers.ContentDisposition.FileName
})
.FlattenExceptions();
}