I'm pretty new to kakfa/spark-streaming. My use case is to send a image through kafka producer and capture it from kafka consumer. I did some research and found out that image must be converted to binary or byte format, but couldn't find any proper sources to continue with it.
What i have done so far:
1.Started zookeeper
2.Started server
3.created a new topic
4.started a producer to send(eg: JSON) - kafka-console-producer.sh --broker-list localhost:9092 --topic send_json < materials.json
5.started a consumer to recieve
How can i send a .jpg or .png file in a similar way? Lang : scala or pyspark