+ 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?

28th Nov 2021, 6:55 PM
Bianca
Bianca - avatar
2 odpowiedzi
0
Did you check kafka dictionary?
29th Nov 2021, 9:31 AM
mohammad fazel sadeghizad
mohammad fazel sadeghizad - avatar
0
You should do something like this : with open ('path.png', 'b+' ) as f: Data= f.read() Encrypteddata=kafka.somthing(data,key)
29th Nov 2021, 9:36 AM
mohammad fazel sadeghizad
mohammad fazel sadeghizad - avatar