|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public static void main(String[] args) { | 
|---|
|  |  |  | ObsUtil blobUtil = new ObsUtil("HPUAQVBRXX9A9TLZ3RTA","uHC2uoFh42Z2xgQmCBBtG8rNZ4Caf85qQ2DQqZZf","obs.cn-south-1.myhuaweicloud.com"); | 
|---|
|  |  |  | blobUtil.uploadLocalFile(new File("D://static/1.png"),"jinkuai","member/1.png"); | 
|---|
|  |  |  | //        blobUtil.uploadLocalFile(new File("D://static/2.png"),"jinkuai","identity/2.png"); | 
|---|
|  |  |  | //        blobUtil.uploadLocalFile(new File("D://static/3.png"),"jinkuai","identity/3.png"); | 
|---|
|  |  |  | //        blobUtil.uploadLocalFile(new File("D://static/4.png"),"jinkuai","identity/4.png"); | 
|---|
|  |  |  | blobUtil.uploadLocalFile(new File("D://static/1.png"),"jinkuai","orders/1.png"); | 
|---|
|  |  |  | blobUtil.uploadLocalFile(new File("D://static/2.png"),"jinkuai","orders/2.png"); | 
|---|
|  |  |  | blobUtil.uploadLocalFile(new File("D://static/3.png"),"jinkuai","orders/3.png"); | 
|---|
|  |  |  | blobUtil.uploadLocalFile(new File("D://static/4.png"),"jinkuai","orders/4.png"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public static  Integer uploadNetFile(ObsClient obsClient,String bucketName,String url, String objectKey) throws IOException { | 
|---|
|  |  |  | InputStream is = new URL(url).openStream(); | 
|---|