pocket icon indicating copy to clipboard operation
pocket copied to clipboard

Passing in python bytes object instead of string to put_buffer

Open andrewmzhang opened this issue 5 years ago • 1 comments

r = pocket.put_buffer(p, src, size, dst_filename, jobid) 

The current python API requires that src be a python string, and passing in a python bytes object throws an error.

Is there a way to change the API/C++ dispatcher to allow me to pass in a bytes object?

andrewmzhang avatar Jan 16 '20 07:01 andrewmzhang

r = pocket.put_buffer(p, src, size, dst_filename, jobid) 

The current python API requires that src be a python string, and passing in a python bytes object throws an error.

Is there a way to change the API/C++ dispatcher to allow me to pass in a bytes object?

I also come across the same problem. Do you solve the problem now?

ukulililixl avatar Apr 04 '20 10:04 ukulililixl