且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用wcf将图像存储到sql数据库中

更新时间:2023-02-24 08:40:22

是 - 但这是一个坏主意。

***将图像存储在文件中,并保留数据库中文件的路径。否则,您将在以后检索它们时浪费数据库时间,内存和带宽。



如果它是WCF服务并不重要,原理是相同的。

Is it possible to store large size image into data base using wcf service ?

Yes - but it's a bad idea.
It's a better idea to store the image in a file, and keep the path to the file in the database. Otherwise, you waste DB time, memory and bandwidth in retrieving them later.

It doesn't matter if it's a WCF service or not, the principle is the same.