We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
content = self._storage.bucket.get_object(self._name) self.file = six.BytesIO(content)
这里的content是oss2.models.GetObjectResult对象,直接作为参数传给six.BytesIO()会返回类似于'<oss2.models.GetObjectResult object at 0x7f59ddc0f250>'这样的字符串,导致无法读取图片。
content
oss2.models.GetObjectResult
six.BytesIO()
'<oss2.models.GetObjectResult object at 0x7f59ddc0f250>'
传给six.BytesIO()的应该为content.read()
content.read()
The text was updated successfully, but these errors were encountered:
多谢, 你可以提交一下pull request
Sorry, something went wrong.
No branches or pull requests
这里的
content
是oss2.models.GetObjectResult
对象,直接作为参数传给six.BytesIO()
会返回类似于'<oss2.models.GetObjectResult object at 0x7f59ddc0f250>'
这样的字符串,导致无法读取图片。传给
six.BytesIO()
的应该为content.read()
The text was updated successfully, but these errors were encountered: