I have a couple of questions about sending images.
How to handle various types of files, jpeg, png, etc.
If the file is large, I want to use sequence numbers ... but I do not know how to stop recording if I do not know the number of sequence numbers.
My knowledge of transferring images / files is almost absent. I have never programmed anything like this before. I was hoping to get some tips and tricks =)
Thanks a lot.
I also use QT, if that helps my situation at all.
TCP, , TCP , , . . , (, ).
, , QImage, QDataStream QImage QByteArray, QTcpSocket write(). Qt QByteArray.
QIODevice ( QFile, ) , readAll(), QByteArray, .
, Qt. . Qt Assistant → → → .
Pass them the same way as any other binary data. send(), recv(). Or no matter what abstraction Qt provides.
send()
recv()
Source: https://habr.com/ru/post/1724215/More articles:Subclass of UITabBarController to customize its frame - iphoneКак удалить строку (элемент) из VB6 ListView с помощью кнопки? - listviewIPhone Static Code Analyzer - objective-cTips / Examples of sending an image file (jpeg, png) through socket programming? - c ++How often window handlers are reused - windowsMy delete methods will be called at the end of an ASP.NET request - c #Why can't I sort this list? - pythonTo create a PDF page from MFC CView - pdfAny free button shapes available? - open-sourceDataMapper has n via Resource DELETE (Remove from association), does not work - ruby | fooobar.comAll Articles