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
class membuf : public std::streambuf { public: membuf(char* p, size_t n) { setg(p, p, p + n); } };
auto buf = new membuf(new char[n], n); auto content = std::make_sharedstd::iostream(buf); AlibabaCloud::OSS::PutObjectRequest request(BucketName, Key, content); client.PutObject(request);
返回的信息是code:ParseXMLError,msg:XML_ERROR_MISMATCHED_ELEMENT
我尝试直接用stringstream上传字符串是正常的,但是不知道这个二进制上传哪里出的问题
The text was updated successfully, but these errors were encountered:
你可以参考一下 #12
Sorry, something went wrong.
No branches or pull requests
class membuf : public std::streambuf {
public:
membuf(char* p, size_t n) {
setg(p, p, p + n);
}
};
auto buf = new membuf(new char[n], n);
auto content = std::make_sharedstd::iostream(buf);
AlibabaCloud::OSS::PutObjectRequest request(BucketName, Key, content);
client.PutObject(request);
返回的信息是code:ParseXMLError,msg:XML_ERROR_MISMATCHED_ELEMENT
我尝试直接用stringstream上传字符串是正常的,但是不知道这个二进制上传哪里出的问题
The text was updated successfully, but these errors were encountered: