title: Saving Jpeg image in C# changes pixels
body: <p>I wrote my own code implementing Steganography project to hide text inside an image. The code works perfectly.</p>
  
  <p>But when I save the image into jpeg file and opening it again, the data is lost, and I get a rubbish result text (as if pixels not saved correctly into the new image)</p>
  
  <p><img src="https://i.stack.imgur.com/bkF8e.jpg" alt="enter image description here"></p>
  
  <p>But when I save the image in Bmp format, then I can get the hidden text perfectly, as if the pixels are saved correctly into the output image:</p>
  
  <p><img src="https://i.stack.imgur.com/plztV.jpg" alt="enter image description here"></p>
  
  <p>So where is the problem?</p>