static async Task GetThumbnail()
{
ClsVision vis = new ClsVision(VisionKey, VisionUri);
string imgSourcePath = @"D:\Image\2.jpg";
FileStream fs = File.OpenRead(imgSourcePath);
int imgLength = (int)fs.Length;
byte[] imgByte = new byte[imgLength];
fs.Read(imgByte, 0, imgLength);
fs.Close();
string imgData = Convert.ToBase64String(imgByte);
byte[] value = await vis.GetThumbnail(imgData,"800","600");
BitmapImage bitmapSource = new BitmapImage();
bitmapSource.BeginInit();
bitmapSource.CacheOption = BitmapCacheOption.None;
bitmapSource.StreamSource = new MemoryStream(value);
bitmapSource.EndInit();
这里该怎么写???????
Console.WriteLine(value);
}