C # Add attachments to a database in Access

1

I have a database in Access that has a field of type 'Datos Ajuntos' and I would like to insert pdf files.

I have the PDF path, I just need to send it. I imagine it would be something like:

//Abrimos la conexión mas arriba    
OleDbCommand cmd = new OleDbCommand(
    string.Format("INSERT INTO MONTAÑO (MONTAÑO.[CAMPO_ARCHIVO]) VALUES('" + archivo + "')
    ,conectado
);
cmd.ExecuteNonQuery();
//Cerramos la conexión aquí abajo
    
asked by Jonathan Garcia 03.04.2017 в 04:53
source

1 answer

-1

I decided to migrate the database to sql Lite and use binary fields as they recommended me and it's perfect for me ... Thank you very much, I do not use Acess again, it is insufficient and somewhat slow in my personal opinion:)

    
answered by 17.04.2017 / 02:21
source