Can't read cbor files #2669
Unanswered
HamletDuFromage
asked this question in
Q&A
Replies: 2 comments 4 replies
-
i have the same problem, help would be welcome |
Beta Was this translation helpful? Give feedback.
0 replies
-
Such an error message usually indicates that the file was not opened successfully and reading the first byte already failed. The slash in the beginning of the filename looks odd. Please make sure the file exists at that path and is actually readable to your program. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm trying to read CBOR files but I'm having trouble with it. I wrote a little snippet that creates a cbor and then attempts to get the json from it
I'm getting this exception:
You can find attached the cbor file, which I can read decode fine with cbor2 on Python
test.cbor.zip
Does anyone know what the issue may be? I'm guessing this line
output_file.write((char*)output_vector.data(), output_vector.size());
is the culprit, and especially(char*)
but it doesn't compile without it.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions