Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Images from MS Access database
Qt 6.11 is out! See what's new in the release blog

Images from MS Access database

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.7k 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.
  • F Offline
    F Offline
    franrok
    wrote on last edited by
    #1

    Hi!

    First of all, sorry for my English and Happy New Year everyone.

    I've got a MS Access 2007 database with 4 columns (1 Autonumber column, 2 text columns and 1 OLE Object column for an image). My Qt application doesn't show that image, it just shows strange symbols and I don't know how to work with that column. Any ideas? please. Thanks!

    Here, the 'Foto' column is the OLE Object column: https://www.dropbox.com/s/uoac33ltpm36r6x/Qtforum.png

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DerManu
      wrote on last edited by
      #2

      If you're lucky, that column is just the binary data of the image, i.e. try to read it with QImage::fromData(...).
      If you're unlucky, it's some Microsoft® OLE Crap. In that case, you'll need to either wade through x-thousand pages of Microsoft® OLE specifications or find some library whose desperate developers have done that for you. <rant>That's what you get when you submit to companies whose business plans are purely based on vendor-lock-in. Can't you turn that column into a binary blob?</rant>

      1 Reply Last reply
      0
      • F Offline
        F Offline
        franrok
        wrote on last edited by
        #3

        @DerManu

        I can't turn that column a binary blob. I tried with QImage::fromData but without success. Anyway, if I got to show the pictures from MS Access, I will tell you how I did it. I'm open to suggestions and advices from everyone. Thanks.

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

          http://qt-project.org/forums/viewthread/12857


          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