storing images in db and map them with nhibernate

别来无恙 提交于 2020-01-14 04:27:47

问题


how to store images in db and map them with nhibernate


回答1:


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.



来源:https://stackoverflow.com/questions/808484/storing-images-in-db-and-map-them-with-nhibernate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!