|
@@ -63,6 +63,7 @@ public class HuaweiCloudStorageService extends CloudStorageService
|
|
|
try {
|
|
|
// 文件上传
|
|
|
com.obs.services.model.PutObjectRequest request = new PutObjectRequest(config.getHuaweiBucketName(), objKey,new ByteArrayInputStream(data));
|
|
|
+
|
|
|
client.putObject(request);
|
|
|
} catch (ObsException e) {
|
|
|
throw new ObsException("文件上传失败," + e.getErrorMessage());
|