<HTML><BODY>Hi all,<br><br>i try to write .mhd to my database.<br><br><strong>std::string createQuery("CREATE TABLE IF NOT EXISTS TestAufnahmenx </strong><br><strong>(ID int unsigned not null auto_increment primary key,</strong><br><strong>Filename varchar(255) not null unique,</strong><br> <strong>Caption varchar(255) not null,</strong><br><strong>Aufnahme longblob not null)");</strong><br><br><strong>std::string insertQuery( "INSERT INTO TestAufnahmenx (ID, Filename, Caption, Aufnahme) </strong><br><strong>VALUES (NULL,'home/joe/Test-Daten/test.mhd','Test',LOAD_FILE('/home/joe/Test-Daten/test.mhd'))");</strong><br><br>it creat this table, but the command LOAD_FILE returns NULL and i get this error.<br><br>->ERROR: In /home/joe/Programme/VTK6.0.0/IO/MySQL/vtkMySQLQuery.cxx, line 588<br>vtkMySQLQuery (0x9fd9810): Query returned an error: Column 'Aufnahme' cannot be null<br>  <br>Can somebody tell me why it returns NULL?<br><br>Thank you for your help<br><br>Roman</BODY></HTML>