title: Kakfa-console-producer format for sending key and a file
body: <p>I am trying to send a file to my java application via kafka-console-producer.bat 
  I found out that the proper format to send a file is as below : </p>
  
  <pre><code>kafka-console-producr.bat --broker-list localhost:9092 --topic topic_name &lt; C:\file.txt
  </code></pre>
  
  <p>What I want to do is pass a key along with the file.
  I do know the proper format for sending key with single line messages.</p>
  
  <p>Is there any way to send a key along with the above format?</p>
  
  <p>Thanks in advance.</p>