|
|
@ -274,7 +274,9 @@ public class ConfigSubscribe : IJob
|
|
|
|
int width = 0, height = 0, focalLength = 0;
|
|
|
|
int width = 0, height = 0, focalLength = 0;
|
|
|
|
int offset = 0, length = 0;
|
|
|
|
int offset = 0, length = 0;
|
|
|
|
string model = "";
|
|
|
|
string model = "";
|
|
|
|
var fileUrl ="http://" + _minioService.endPoint + "/" + _minioService._bucketName + "/" + objectKey;
|
|
|
|
if (objectKey.ToLower().EndsWith("jpeg"))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var fileUrl ="http://" + _minioService.endPoint + "/" + _minioService._bucketName + "/" + objectKey;
|
|
|
|
using (var httpClient = new HttpClient())
|
|
|
|
using (var httpClient = new HttpClient())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// 目前读取64KB
|
|
|
|
// 目前读取64KB
|
|
|
@ -384,6 +386,8 @@ public class ConfigSubscribe : IJob
|
|
|
|
throw new Exception($"下载Range数据失败: {ex.Message}", ex);
|
|
|
|
throw new Exception($"下载Range数据失败: {ex.Message}", ex);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*string objectKey1 = data.file.object_key.ToString();
|
|
|
|
/*string objectKey1 = data.file.object_key.ToString();
|
|
|
|
//缩略图处理
|
|
|
|
//缩略图处理
|
|
|
|
var imageStream = _minioService.GetObjectAsStream("", objectKey1);
|
|
|
|
var imageStream = _minioService.GetObjectAsStream("", objectKey1);
|
|
|
|