Results 1 to 3 of 3

Thread: listing the files that has been uploaded to postgres

  1. #1
    Join Date
    Jan 2007
    Posts
    201
    Thanks
    22
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default listing the files that has been uploaded to postgres

    We save same photos to postgres, is there any possible way thet you know, we could list them to a file list, or a QDirModel?

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: listing the files that has been uploaded to postgres

    You can create your custom model that queries the database for the images.
    Next you need a view to display that list. The possibilities to display that list are endless, so that should be your choice.

    Unfortunately I don't know much about postgresql blobs support and I don't really feel like learning it right now, but I assume that if you managed to save those images in a table, you can also construct a query to get at least the names of the images. Even more, you can have the model provide thumbnail to the view, but I am not sure on the performance issues on this one, since you'd have to retrieve the entire binary content.

    Regards

  3. The following user says thank you to marcel for this useful post:

    aekilic (17th September 2007)

  4. #3
    Join Date
    Jan 2007
    Posts
    201
    Thanks
    22
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: listing the files that has been uploaded to postgres

    Dear Marcel

    The problem is, we could upload pictures to postgres, but the problem, I havent try to get them back with a quary and put them in to list. I will try and let you know about it.

    Thanks anyway

Similar Threads

  1. Qt4: QDir::entryList bug in windows when listing network files?
    By Yvon Halbwachs in forum Qt Programming
    Replies: 2
    Last Post: 12th May 2006, 14:22

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.