Send and receive image over serial port
I want to create a desktop application which at one terminal opens and reads an image from a file, send it over the serial port and receive it via serial port at the other terminal. Could anyone please let me know the steps and necessary functions to create the app?
Thank you in advance.
- Read this Example : http://qt-project.org/doc/qt-5.1/qtserialport/terminal.html
- You have the image, convert and send as ByteArray. http://qt-project.org/wiki/Converting_QPixmap_to_QByteArray
One Quick Question : Why do you do so ? Because, if the image is big, it is going to take real long time.
Thank you.. I want to send images of 1kB for an application.
1 x 1024 x 10 / 9600 (bw) ~ Approximately 1 second.