Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片无法保存 #89

Open
13751046449 opened this issue Jun 14, 2017 · 0 comments
Open

图片无法保存 #89

13751046449 opened this issue Jun 14, 2017 · 0 comments

Comments

@13751046449
Copy link

	GetObjectRequest request = new GetObjectRequest(bucketName, objName);
	request.setProcess(resizeStyle);
	
	try{
		ossClient.getObject(request, new File(newObjName));
	}catch(OSSException oe){
		System.out.println("Error Message: " + oe.getErrorCode()+oe.getErrorMessage());
	}
	catch(ClientException ce){
                   System.out.println("Error Message: " + ce.getErrorCode()+ce.getErrorMessage());
	}
	catch (Throwable e){
                    System.out.println("Error Message: " + e.getMessage());
            }

调用该方法后,无任何报错,但是到新的指定目录下,没有生成相应的文件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant