|
@ -100,11 +100,19 @@ namespace 齐越慧眼.UserControls |
|
|
{ |
|
|
{ |
|
|
using (WebClient client = new WebClient()) |
|
|
using (WebClient client = new WebClient()) |
|
|
{ |
|
|
{ |
|
|
byte[] arr= client.DownloadData(url.Replace("_.webp","")); |
|
|
try |
|
|
|
|
|
{ |
|
|
|
|
|
byte[] arr = client.DownloadData(url.Replace("_.webp", "")); |
|
|
arr = GetSmallImgArr(arr); |
|
|
arr = GetSmallImgArr(arr); |
|
|
BrowerTabPanelControl.Main.OpenSomePicItem(Convert.ToBase64String(arr)); |
|
|
BrowerTabPanelControl.Main.OpenSomePicItem(Convert.ToBase64String(arr)); |
|
|
return String.Empty; |
|
|
return String.Empty; |
|
|
} |
|
|
} |
|
|
|
|
|
catch (Exception ex) |
|
|
|
|
|
{ |
|
|
|
|
|
MessageBox.Show(ex.Message); |
|
|
|
|
|
return String.Empty; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public byte[] GetSmallImgArr(byte[] arr) |
|
|
public byte[] GetSmallImgArr(byte[] arr) |
|
|