MySQL Forums
Forum List  »  Newbie

using load_file function
Posted by: jrwatson999
Date: April 20, 2005 06:34AM

I'm having trouble with the load_file function to read a file into a blob. (I am running MySQL 4.1.10 on RedHat Linux) I have a simple table with 2 columns: an INT key and a BLOB. As a test case, I inserted one row with values of 1 and null respectively.

The following SQL works from mysql command line:
UPDATE table SET blobcolumn = LOAD_FILE('/tmp/testfile.dat') WHERE keycolumn = 1;

However, from within a C program, where I log into same database as same user - that command does NOT work.

Am I missing some connection options when connecting in C? Is there a better or alternate method of reading data into a blob column in C?

Options: ReplyQuote


Subject
Written By
Posted
using load_file function
April 20, 2005 06:34AM


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.