1

how to store images in db and map them with nhibernate

1 Answer 1

6

You can map binary data using the binary type which equates to a byte[] array in code and a varbinary in the database. This may cause performance issues if you load a number of objects containing binary data or large objects because the objects will be kept in memory in the first level cache. This article discusses techniques to improve performance in this situation.

Sign up to request clarification or add additional context in comments.

1 Comment

Someone upvoted this today (thanks) so I thought I'd add that lazy loading a single property is coming to NHibernate: ayende.com/Blog/archive/2010/01/27/….

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.