Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Reg: Hexadecimal to JPEG image
Forum Updated to NodeBB v4.3 + New Features

Reg: Hexadecimal to JPEG image

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 3 Posters 2.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vishva
    wrote on last edited by
    #1

    Hi,
    I have a C328 uart camera. I am getting Hexadecimal value when i take picture. ex:"00 00 FA 01 FF D8 FF DB 00 84 00 13 0D 0E 10 0E 0C 13 10 0F 10 15 14 13 16 1C 2F 1E 1C 1A 1A 39 29 2B 22 2F 44 3C 47 46 43 3C 42 40 4B 54 6C 5B 4B 50 66 51 40 42 5E 80 5F 66 6F 73 79 7A 79 49 5A 84 8E 83 75 8D 6C 76 79 74 01 14 15 15 1C 19 1C 37 1E 1E 37 74 4D 42 4D"

    Can any one point me how to convert this to an JPEG image in QT???

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Rahul Das
      wrote on last edited by
      #2

      Hex -> QByteArray -> QPixmap ?


      Declaration of (Platform) independence.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Code_ReaQtor
        wrote on last edited by
        #3

        "QImage::loadFromData":http://qt-project.org/doc/qt-4.8/qimage.html#loadFromData-2

        Please visit my open-source projects at https://github.com/Code-ReaQtor.

        1 Reply Last reply
        0
        • V Offline
          V Offline
          Vishva
          wrote on last edited by
          #4

          Hi Rahul,
          I tried to find ref in forum, but didnt find any.. can you point me where to look??

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Rahul Das
            wrote on last edited by
            #5

            Create a QByteArray. [ http://qt-project.org/doc/qt-5.0/qtcore/qbytearray.html#fromHex ]

            Using this QByteArray, Create QPixmap [http://qt-project.org/doc/qt-5.0/qtgui/qpixmap.html#loadFromData-2]
            or QImage [ as Code_ReaQtor posted above.]


            Declaration of (Platform) independence.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved