Use output.put(i);
since it takes one character at a time.
But you really want to skip the for-loop and just write the whole vector in one write:
output.write(f.data(), f.size());
2
solved Save an unsigned char vector one by one
Use output.put(i);
since it takes one character at a time.
But you really want to skip the for-loop and just write the whole vector in one write:
output.write(f.data(), f.size());
2
solved Save an unsigned char vector one by one