Using multipart file upload with webread

16 次查看(过去 30 天)
I am trying to upload an image to an API service using this cURL:
curl -X POST \
https://api.platerecognizer.com/v1/plate-reader/ \
-H 'Accept: */*' \
-H 'Accept-Encoding: gzip, deflate' \
-H 'Authorization: Token 9a3axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx96aaf' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Content-Length: 174169' \
-H 'Content-Type: multipart/form-data; boundary=--------------------------453052928080780081043918' \
-H 'Host: api.platerecognizer.com' \
-H 'Postman-Token: d154bc62-62cb-4374-8770-6f486764e967,0965562d-3723-4716-8e70-bbfa12277a21' \
-H 'User-Agent: PostmanRuntime/7.20.1' \
-H 'cache-control: no-cache' \
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
-F upload=@/C:/Users/Henrik/Desktop/plate.jpg
Any suggestions how to do this in MatLab?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Call Web Services from MATLAB Using HTTP 的更多信息

标签

产品


版本

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by