Results 1 to 2 of 2

Thread: Problems with Image Streaming

  1. #1
    Join Date
    Apr 2011
    Posts
    10
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Problems with Image Streaming

    Hello , I am newbie in Qt . I have implemented a Qt TCP - client for receiving images from a java server. The code is the following :

    QTcpsocket *socket_video = (QTcpSocket *)sender();

    QByteArray nbytes2 = socket->readAll();

    I am interested in obtaining an IMage by a QByteArray and represent it.
    How is it possible to create a IMage in Qt by a QByteArray ? Do you have any code example ?
    Thanks.
    GOrka

  2. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problems with Image Streaming

    Please, don't post the same question in multiple threads http://www.qtcentre.org/threads/4100...rom-QByteArray
    A camel can go 14 days without drink,
    I can't!!!

Similar Threads

  1. Problems setting a background image
    By franco.amato in forum Qt Programming
    Replies: 10
    Last Post: 28th January 2011, 22:33
  2. Image Problems on different PC's
    By fakefish in forum Qt Programming
    Replies: 3
    Last Post: 21st January 2010, 16:05
  3. problems loading an image .jpg
    By maider in forum Qt Programming
    Replies: 3
    Last Post: 14th December 2009, 11:57
  4. Problems with drawing image in paintEvent of QTreeView
    By Tito Serenti in forum Qt Programming
    Replies: 7
    Last Post: 24th December 2008, 23:25
  5. Problems mapping an image file into QByteArray
    By Dark_Tower in forum Qt Programming
    Replies: 3
    Last Post: 12th December 2006, 21:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.