using (Stream imageFileStream = new MemoryStream(a))
{
imageFileStream.Position = 0;
var result = await faceServiceClient.DetectAsync(imageFileStream);
if (result != null)
await BlobStorageService.SaveBlockBlob("photos", a, Entry1.Text);
}