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
https://login.sina.com.cn/cgi/pin.php?r=
没有找到image可以设置data的。不知道有没有解决方案?
Options options = Options( responseType: ResponseType.STREAM, contentType: ContentType.parse('image/png'), method: 'get', headers: headers, ); Response<dynamic> response = await dio.get( url, options: options, );
这种方式是对的吗?
The text was updated successfully, but these errors were encountered:
已经解决。抱歉这个问题和dio没关系。
Sorry, something went wrong.
@sidealice 请问能说一下是如何解决的吗?
-> 我目前是通过consolidateHttpClientResponseBytes解决的
这样写就行 static Future getCaptchaByMobile(String mobile) async {
Options options = Options( responseType: ResponseType.stream, ); Response response = await http .get(Urls.GetCaptchaByMobile, queryParameters: {"mobile": mobile},options: options); ResponseBody resp = response.data;
return resp.stream.first;
}
No branches or pull requests
https://login.sina.com.cn/cgi/pin.php?r=
没有找到image可以设置data的。不知道有没有解决方案?
这种方式是对的吗?
The text was updated successfully, but these errors were encountered: