Hello, i am trying to send a QImage file over serial port; but i couldn't manage it..
There is no data sent in serial port monitor, when i send the file "avatar.gif"..(with send function of Qextserialport)
Am i missing something...
here is my code:
QImageReader reader
("C:/Documents and Settings/pc/MyDocuments/Visual Studio 2005/Projects/videocapture3/avatar.gif");
reader.read(&picture);
picture.loadFromData(bytes);
sp->send(bytes.size(),bytes.data());
QByteArray bytes;
QImage picture(80, 80,QImage::Format_RGB32);
QImageReader reader("C:/Documents and Settings/pc/MyDocuments/Visual Studio 2005/Projects/videocapture3/avatar.gif");
reader.read(&picture);
picture.loadFromData(bytes);
sp->send(bytes.size(),bytes.data());
To copy to clipboard, switch view to plain text mode
Bookmarks