Click here to Skip to main content
15,877,051 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone!!
I got an issue about image in NHibernate. So my problem is how can we save and load image from database in NHibernate? Could anyone can help me, please?

Thanks all your comment
Posted

You will have to convert your Image into byte[].

Have a look at below link for Mapping and Entity settings/types.
http://stackoverflow.com/questions/337789/how-to-map-image-type-in-nhibernate
 
Share this answer
 
Comments
nguyenle.it 25-Oct-11 5:51am    
Thanks, but could you give me some link that talk in detail, because i'm a newbie with NHibernate
I got one, thanks all your comment

<a href="http://nhibernate.hibernatingrhinos.com/29/lazy-loading-blobs-and-the-like-in-nhibernate">http://nhibernate.hibernatingrhinos.com/29/lazy-loading-blobs-and-the-like-in-nhibernate</a>
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900