Post data of cpr::File
is different from a cpr::Buffer
of the same file
#1105
Labels
cpr::File
is different from a cpr::Buffer
of the same file
#1105
Description
When I try to upload a file within a
Multipart
with aPost
request, the bytes are different when I usecpr::File
andcpr::Buffer
for the same file. Below is some example code I tried with a small PNG image.The output I get is this:
You can also see that the lengths are different. Also I should mention that if I save the
vec
buffer back again into a file, it is identical to the original.Example/How to Reproduce
See code example
Possible Fix
No response
Where did you get it from?
vcpkg
Additional Context/Your Environment
The text was updated successfully, but these errors were encountered: