Using multipart file upload with webread

16 views (last 30 days)
Henrik Pedersen
Henrik Pedersen on 17 Dec 2019
Edited: Henrik Pedersen on 17 Dec 2019
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?

Answers (0)

Tags

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!