Results 1 to 4 of 4

Thread: How to insert BLOB into MySQL with Qt?

  1. #1
    Join Date
    Apr 2010
    Location
    Singapore
    Posts
    156
    Thanks
    47
    Qt products
    Qt4
    Platforms
    Windows

    Question How to insert BLOB into MySQL with Qt?

    How to insert BLOB-(text files) into MySQL with Qt?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How to insert BLOB into MySQL with Qt?

    It works like any other insert. Use QSqlQuery with QSqlQuery::prepare() and construct a normal sql query.

  3. #3
    Join Date
    Apr 2010
    Location
    Singapore
    Posts
    156
    Thanks
    47
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to insert BLOB into MySQL with Qt?

    Are there any sample codes ?

  4. #4
    Join Date
    Jul 2007
    Location
    Jundiai/SP, Brazil
    Posts
    114
    Thanks
    5
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to insert BLOB into MySQL with Qt?

    Hi babygal,

    Although I think you should do more research on this subject,
    I posted some time ago to a code on this site MySQL.com
    Access the link below and see if this can help you.

    http://dev.mysql.com/doc/refman/5.1/en/blob.html

  5. The following user says thank you to vcp for this useful post:

    babygal (27th August 2010)

Similar Threads

  1. Inserting blob into mysql using QT?
    By maverick_pol in forum Qt Programming
    Replies: 4
    Last Post: 31st August 2010, 04:37
  2. Fast insert record into MySql
    By weixj2003ld in forum Qt Programming
    Replies: 3
    Last Post: 15th July 2010, 09:08
  3. Replies: 2
    Last Post: 17th February 2010, 14:32
  4. INSERT query with MySQL problem
    By timmyg in forum Qt Programming
    Replies: 10
    Last Post: 20th March 2008, 21:52
  5. MYSQL insert
    By allensr in forum Newbie
    Replies: 4
    Last Post: 14th August 2006, 16:55

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.