SQL Server映像 [英] SQL Server images

查看:70
本文介绍了SQL Server映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我是新手.我有一台带有公共IP的专用服务器.它正在运行sql server 2005,但是我遇到了挑战.

Im a newbie at this. I have a dedicated server with a public IP. Its running sql server 2005 but Im having a challenge.

我正在存储图像和文档,并且服务器数据库越来越大.有没有一种方法可以将图像存储在文件夹而不是数据库中,并且仅在使用公共IP的同时将路径存储在数据库中,导致共享文件夹也很困难.

I am storing images and documents and the server database is getting big. is there a way I can store images in a folder instead of the database and just store the path in the database while using an public IP cause having a hard time sharing the folder too.

请提供解决方案的帮助.我正在使用C#WPF

Please please help with solutions. Im using C# WPF

预先感谢

推荐答案

您可以做到.实际上,在我的一个项目中,我做过同样的事情.请确保您使用数据库中的虚拟路径(即〜/images/somefolder/someimage.png).这将帮助您将其正确映射到URL.
You can do that. Actually in one of my project i did the same thing. Please make sure you use the virtual path in DB (i.e. ~/images/somefolder/someimage.png). This will help you map it correctly with to the url.


这篇关于SQL Server映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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