gabrielk wrote:
Hi Folks,
I would like to write some images to records in the database. I can't find any samples here, so that's why I post the question.
I would like to know how to read and write (image) files to the database and which fieldtype to use.
Thanks in advance,
Greets,
Gab****
You should use fieldtype 'Image' in SqlServer. You read the image in .NET into a byte array, and then simply set entity.ImageField = theByteArray; and save the entity and it's in the database