Mensaje    Asunto: Error en bd Responder citando

Hola


tengo el siguiente codigo (estoy manejando una base de datos paradox)

std::auto_ptr< Classes::TMemoryStream > matriz_prot3(new Classes::TMemoryStream);
matriz_prot3.get()->Position = 0;
matriz_prot3.get()->Write(mat, 1024 * sizeof(double));
matriz_prot3.get()->Position = 0;

std::auto_ptr< Classes::TMemoryStream > foto_prot3(new
Classes::TMemoryStream);
foto_prot3.get()->Position = 0;
Form4->Image1->Picture->Bitmap->SaveToStream(foto_prot3.get());

Query1->Cancel();
Query1->Close();
Query1->SQL->Clear();
Query1->SQL->Add("update prototipo ");
Query1->SQL->Add("set matriz_prot3 = :valor_blob, foto_prot3 =
:imagen, num_prot = 3 ");
Query1->SQL->Add("where cedula = " +
AnsiString(Form4->cedula));
Query1->Prepare();

Query1->ParamByName("valor_blob")->LoadFromStream(matriz_prot3.get(),ftBlob)
;
Query1->ParamByName("imagen")->LoadFromStream(foto_prot3.get(),ftGraphic);
Query1->ExecSQL();

Table1->Post();

y el siguiente problema:

Cuando hago el update me actualiza los campo matriz_prot3 y foto_prot3, pero
el campo num_prot no me lo actualiza y no se el por que.

Y aparte de todo cuando voy por la linea

Table1->Post();

me aparece un error que dice

'Invalid BLOB handle in record buffer'

y no se el por que.

Alguien puede colaborarme con este problema.

Gracias