|
|
|
@ -202,8 +202,10 @@ namespace DevicesService.Common
|
|
|
|
|
if (!string.IsNullOrEmpty(data)) |
|
|
|
|
{ |
|
|
|
|
FileInfo fileInfo = new FileInfo(data); |
|
|
|
|
//压缩 |
|
|
|
|
string newdata = Util.CompressPictures(fileInfo); |
|
|
|
|
string base64 = Util.ImgToBase64String(data); |
|
|
|
|
//转换 |
|
|
|
|
string base64 = Util.ImgToBase64String(newdata); |
|
|
|
|
//Task.Run(async () => |
|
|
|
|
//{ |
|
|
|
|
// UploadInfoByFile(url, data); |
|
|
|
|