M
margec3
// at server, bitmapStream is a MemoryStream that i put together by
converting a gif file from indexed pixel format to raw (A)RBG format
Bitmap carrierBitmap = new Bitmap(bitmapStream);
// store encrypted data at the 'R' element of pixels at various
positions of carrierBitmap (i am doing image steganography)
// save the worked up bitmap back to memory stream
bitmapStream.Flush();
carrierBitmap.Save(bitmapStream,
System.Drawing.Imaging.ImageFormat.Png);
//******* examine pixels of the first 10 worked up positions of the
result bitmap (to be compared with the one recovered by the client
later)
// convert memory stream to byte array
byte[] embeddedBuf = bitmapStream.ToArray();
// send byte array to pocket PC client
// recover the memory stream at client
Bitmap carrierBitmap = new Bitmap(bitmapStream);
//******* examine pixels of the first 10 positions of the recovered
bitmap, and they're different, not just the R value that i need to
recover the original data with, but G and B too
can someone shed some light about why and how i can recover the exact
bitmap sent by the server?
converting a gif file from indexed pixel format to raw (A)RBG format
Bitmap carrierBitmap = new Bitmap(bitmapStream);
// store encrypted data at the 'R' element of pixels at various
positions of carrierBitmap (i am doing image steganography)
// save the worked up bitmap back to memory stream
bitmapStream.Flush();
carrierBitmap.Save(bitmapStream,
System.Drawing.Imaging.ImageFormat.Png);
//******* examine pixels of the first 10 worked up positions of the
result bitmap (to be compared with the one recovered by the client
later)
// convert memory stream to byte array
byte[] embeddedBuf = bitmapStream.ToArray();
// send byte array to pocket PC client
// recover the memory stream at client
Bitmap carrierBitmap = new Bitmap(bitmapStream);
//******* examine pixels of the first 10 positions of the recovered
bitmap, and they're different, not just the R value that i need to
recover the original data with, but G and B too
can someone shed some light about why and how i can recover the exact
bitmap sent by the server?