+ 2
How to encode and send an image with kafka?
I need to encode an image and send it to the consumer using kafka in python. Any suggestions?
2 Antworten
0
Did you check kafka dictionary?
0
You should do something like this :
with open ('path.png', 'b+' ) as f:
Data= f.read()
Encrypteddata=kafka.somthing(data,key)