title: java.io.StreamCorruptedException: invalid stream header FFD8FFE0
body: <p>I'm getting an IOException in my code in the following line  </p>
  
  <pre><code>   ObjectInputStream stream = new ObjectInputStream(new FileInputStream("D:\\K.jpg"));
  </code></pre>
  
  <p>The Exception detail is:</p>
  
  <pre><code>java.io.StreamCorruptedException: invalid stream header: FFD8FFE0
  at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
  at java.io.ObjectInputStream.&lt;init&gt;(Unknown Source)
  </code></pre>
  
  <p>Please help me.</p>