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
Upload image with Uint8List in FormData sent string instead of binary #485
Comments
FormData所有的内容最终都是以2进制上传的,你说“完整log中显示我传出的是string”,这个是根据什么判断的?如果是根据content-type,那么你可以指定一下MultipartFile的contentType |
|
恰逢国庆,只能节后再继续调试了,国庆快乐! |
1、在formdata example中,并没有使用 仍认为其中存在部分问题。 |
同样的问题 |
根据群友做的大量测试,目前已定位问题, |
我都是指定filename的,反正不行 |
Having same kind of issue in dio, As in our back-end they are accepting only binary data for file, I would like to have option to pass binary in body instead string, I'm trying to pass byte[] in body but automatically converting into string and the content-type:application/octet-stream which I'm not sure it's doing anything with that, please help or suggest any solution. Solution:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, please make sure it is up to date and if so, add a comment that this is still an issue to keep it open. Thank you for your contributions. |
@wendux Please take a look. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, please make sure it is up to date and if so, add a comment that this is still an issue to keep it open. Thank you for your contributions. |
Still, it's an issue. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, please make sure it is up to date and if so, add a comment that this is still an issue to keep it open. Thank you for your contributions. |
Thanks! It works :) |
这样怎么指定上传的文件的key呢? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, please make sure it is up to date and if so, add a comment that this is still an issue to keep it open. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, please make sure it is up to date and if so, add a comment that this is still an issue to keep it open. Thank you for your contributions. |
Eww, another library waiting for abandon... |
New Issue Checklist
Issue Info
Issue Description and Steps
First congratulate with the brand new version of Dio released.
首先恭喜Dio的新版本发布~
In my case,
Uint8List
image data will be converted tostr
instead ofbinary
according to PyCharm's log.在我的业务中,根据PyCharm的日志,
Uint8List
形式的图片数据被转化成了字符串而不是二进制数据。As I proceed with the same method, adding a transformer, etc. It just post a string, still.
在我使用了与相关方法后,添加了数据转换等,问题依旧。
Some of my code provided below:
下面提供部分上传实现代码:
Please help me with this when you have spare time, thx a lot.
若您有时间,请帮助我解决这个问题,非常感谢!
The text was updated successfully, but these errors were encountered: