Working with images in WCF

后端 未结 2 1821
没有蜡笔的小新
没有蜡笔的小新 2021-01-03 16:14

I have a desktop application that needs to upload/download images to/from service computer over TCP Protocol.

At first, I stored images in file system, but I need to

2条回答
  •  借酒劲吻你
    2021-01-03 16:37

    Which version of SQL server? Version 2008 adds FILESTREAM which is specifically designed for this purpose. FILESTREAM data can be located on disk which makes it very fast to access.

    If this is not an option, you could look into creating a separate filegroup for your image data (to give you the most flexibility when partitioning your data) and use the varbinary(max) or image data types.

    A SQL guru will probably chime in with better info.

提交回复
热议问题