Encoded.cbor not able upload into edge impulse

I am trying to upload the encoded.cbor file that had generated from Impulse C Ingestion SDK but duing uploade edge impulse through below error.

"[1/1] Failed to upload encoded.cbor Payload arrays should all be the same length as sensors (3)’

Is this the standard file or did you modify the example as you stated in the other post? Can you post the file here? The built-in one example uploads fine for me on macOS:

janjongboom:~/repos/ingestion-sdk-c/test (master) $ edge-impulse-uploader encoded.cbor
Edge Impulse uploader v1.10.2
Endpoints:
    API:         https://studio.edgeimpulse.com/v1
    Ingestion:   https://ingestion.edgeimpulse.com

Upload configuration:
    Label:       Not set, will be infered from file name
    Category:    training
    Project:     Continuous gestures (ID: 2657)

[1/1] Uploading encoded.cbor OK (243 ms)

Done. Files uploaded successful: 1. Files that failed to upload: 0.

yes, whatever sample file generated from main.c file I am trying to upload it into edge impulse. I haven’t edited anything in encoded.cbor file.
I don’t have option to attach file but copied the crypted data as below
Encoded file:
a3 69 70 72 6f 74 65 63 74 65 64 a2 63 76 65 72 62 76 31 63 61 6c 67 65 48 53 32 35 36 69 73 69 67 6e 61 74 75 72 65 78 40 66 30 62 63 39 34 65 65 36 31 36 66 39 30 32 61 35 64 62 63 65 32 61 33 32 66 33 39 34 36 38 37 33 38 33 31 61 37 34 36 62 38 30 31 39 62 62 33 62 33 65 62 30 38 35 30 61 39 62 31 37 30 34 38 67 70 61 79 6c 6f 61 64 a5 6b 64 65 76 69 63 65 5f 6e 61 6d 65 71 61 63 3a 38 37 3a 61 33 3a 30 61 3a 32 64 3a 31 62 6b 64 65 76 69 63 65 5f 74 79 70 65 73 44 49 53 43 4f 2d 4c 34 37 35 56 47 2d 49 4f 54 30 31 41 6b 69 6e 74 65 72 76 61 6c 5f 6d 73 f9 49 00 67 73 65 6e 73 6f 72 73 83 a2 64 6e 61 6d 65 64 61 63 63 58 65 75 6e 69 74 73 64 6d 2f 73 32 a2 64 6e 61 6d 65 64 61 63 63 59 65 75 6e 69 74 73 64 6d 2f 73 32 a2 64 6e 61 6d 65 64 61 63 63 5a 65 75 6e 69 74 73 64 6d 2f 73 32 66 76 61 6c 75 65 73 9f 83 fa c1 1c f5 c3 fa 3c f5 c2 8f fa 3f 9a e1 48 83 fa c1 1d 47 ae fa 3d 23 d7 0a fa 3f a3 d7 0a 83 fa c1 11 eb 85 fa 3c f5 c2 8f fa 3f 9d 70 a4 83 fa c1 12 3d 71 fa 3c 23 d7 0a f9 3d 00 ff 5c 57 49

Hmm there seem to be three stray bytes (5c 57 49) at the end of the file. Let me fire up a Windows VM.

Alright, the file was not opened in binary mode, which did not matter on Linux and macOS, but shows on Windows. In main.c replace line 72 with:

FILE *file = fopen("test/encoded.cbor", "wb+");

And this should generate valid files. Updated the ingestion-sdk-c repository to reflect this too. Once again, sorry for the inconvenice! This repo is normally included as just the library, and I’m pretty sure you’re the first person to run the example on Windows (or at least, to report back!).

yes, that’s a fix for windows now its got uploaded as expected.
Thanks,
Vikas B