如何使用wcf将图像存储到sql数据库中 [英] How to store image into sql data base using wcf

查看:79
本文介绍了如何使用wcf将图像存储到sql数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用wcf服务将大尺寸图像存储到数据库中?

解决方案

是 - 但这是一个坏主意。

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



如果它是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.


这篇关于如何使用wcf将图像存储到sql数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆