Quote Originally Posted by yagabey View Post
I need te send it as it is.. I wont change the format while sending..
Then you don't need QImage, but QFile::readAll().

Quote Originally Posted by yagabey View Post
I checked QImage::bits; it returns a uchar pointer. How to fill the bytes with that?
Using proper QByteArray constructor.