Results 1 to 2 of 2

Thread: how to store image or music files to blob field of database

  1. #1
    Join Date
    Sep 2009
    Posts
    54
    Thanks
    4
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default how to store image or music files to blob field of database

    Dear Friends,
    I wondered if got solution for my query, for my current project i am trying to store image and music files into blob field of database tables. How can i convert source file to binary file and store it into the blob field of database tables. If i got some sample code it will be very useful for me.
    Thanks in advance,


    Askar......

  2. #2
    Join Date
    Jun 2008
    Location
    Germany/Belarus/Sweden
    Posts
    53
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: how to store image or music files to blob field of database

    the best way to store something binary in DB is to convert bin data to base64. IMHO

Similar Threads

  1. Replies: 5
    Last Post: 8th April 2008, 23:10

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.