Saving Images to access database

B

Bob Allen

I am trying to save an image to an access database. I am using the following
code as my update syntax. In the example below b is a byte [] array of the
image. All it is putting in the field is Long Binary Data.

UPDATE datapath SET img_fnt = '" + b + "' where path1 = 'xxx';

the column is created as an ole object. any help is appreicated.

Thanks,
bob;
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

That will gonna work , you have to use a parameterized query.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top