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

[Feature]: Http plugin: Support ArrayBuffer as request body and response #7471

Closed
3 tasks done
marcelklehr opened this issue May 17, 2024 · 3 comments
Closed
3 tasks done
Labels

Comments

@marcelklehr
Copy link

Description

I would like to send and receive binary data via http without being limited to CORS

Platforms

  • iOS
  • Android
  • Web

Request or proposed solution

Allow me to set an arraybuffer as request buffer

Alternatives

No response

Additional Information

No response

@jcesarmobile
Copy link
Member

If you mean when using the patched fetch/XHR, it should be working already, if it's not working for you, please, create a new issue and provide a sample app that reproduces the problem.

If you mean when using the CapacitorHttp API directly, you have to do the conversion to base64 yourself.

@jcesarmobile jcesarmobile closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2024
@marcelklehr
Copy link
Author

Mmh, I think I'm still on v5 maybe that's the issue.

@jcesarmobile
Copy link
Member

If using latest 5.x it should also work, there were no changes related to http in v6 vs v5 and fixes are being backported until 5.x maintenance period ends

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

No branches or pull requests

2 participants