Hi, I want to upload a file to an azure-blob-storage through an azure-iot-hub account withour using the azure SDK. As stated in this docs (https://video2.skills-academy.com/en-us/azure/iot-hub/iot-hub-devguide-file-upload), i have first created a blobstorage account and i have associated it to the iothub account. Then, i was able to perform a post request to {iot hub}.azure-devices.net/devices/{deviceId}/files and received the correct answer with a Sas Token.
Here is where i´m stucked, as in the docs it is recommended to use the azure SDK, which i want to avoid.
I have done a HTTP PUT directly to the blob storage with the provided Sas-Token (as described here https://video2.skills-academy.com/en-us/rest/api/storageservices/put-blob), but i failed. I think i am not constructing well the header, but i don´t know really.
Here is an example of the header:
PUT /<STORAGE-CONTAINER>/<DEVICE ID>/prueba1.txt?<SAS TOKEN HERE> HTTP/1.1
Host: <BLOB STORAGE>
Content-Type: multipart/form-data; boundary=---------------------------735323031399963166993862150
Content-Length: 206
-----------------------------
735323031399963166993862150
Content-Disposition: form-data; name="prueba1-name"; filename="prueba1.txt"
viva peron
-----------------------------
735323031399963166993862150