Re: Inserting a blob in 'C'
Posted by: Paul Hartman
Date: November 08, 2005 10:26AM

Use mysql_real_escape_string() to escape the binary data into a "string" that can be properly inserted into MySQL. Read the C API section of the MySQL manual for usage details.

Or, if you have it as a file on the database server, you can possibly do something like INSERT INTO images VALUES (1234, LOAD_FILE("/home/user/blah.dat")

Options: ReplyQuote


Subject
Views
Written By
Posted
674
October 25, 2005 11:10AM
Re: Inserting a blob in 'C'
433
November 08, 2005 10:26AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.