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

Add the support to send image files directly using multipart/form-data instead of application/x-www-form-urlencoded #733

Closed
klalit opened this issue Jul 27, 2019 · 1 comment

Comments

@klalit
Copy link
Contributor

klalit commented Jul 27, 2019

This avoids the need to read and base64 encode the image prior to REST api call. It will be useful for models that take file/image as input for e.g. model for the image classification or ocr.

A detailed discussion in the context

https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data

microsoft also uses this MIME type for the images

https://westus.dev.cognitive.microsoft.com/docs/services/56f91f2d778daf23d8ec6739/operations/56f91f2e778daf14a499e1fe

@klalit klalit changed the title Add the support to send image files directly using multipart/form-data instead of application/x-www-form-urlencoded Add the support to send image files directly using multipart/form-data instead of application/x-www-form-urlencoded Jul 27, 2019
@klalit
Copy link
Contributor Author

klalit commented Aug 16, 2019

functionality implemented and merged

@klalit klalit closed this as completed Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant