哪个是在服务器上保存图片的最佳方法? [英] Which is the best way to save pictures on server ?

查看:515
本文介绍了哪个是在服务器上保存图片的最佳方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有网络,其中包括服务器和许多用户,我想在服务器上保存大量的图片,我参加使用Windows应用程序(用VB.net编写),以便其他用户可以通过此程序访问此图片。

和问题是:这是在服务器上保存图片的最佳方式(不在数据库中)并将这些图片的链接保存在数据库上(SQLServer)



&thanks



我使用FTP技术的代码vb.Net是什么?

我要转移的地方服务器上的图像。

是否有来自FTP的最佳技术Takina?

I have network which includes server and many users and I want to save large amount of pictures on the server and I attend to use windows application (written with VB.net ) so can other users access this pictures Through this program.
and the question is : which is the best way to save pictures on server ( not in database ) and save the links of this pictures on database (SQLServer)

&thanks

What is the code "vb. Net" which I use FTP technology ?
Where I want to transfer the image to the server.
Is there Best technical Takina from FTP ?

推荐答案

信息不足。在其他条件相同的情况下,您应该将图像保存为压缩形式,以满足您的需求。例如,如果您还需要透明图层等功能,则为.jpg,尺寸为.png。



只需在数据库中保存链接即可获得任何收益 - 除非它还包括链接的上下文。在这种情况下,您可以使用数据库查找与某些想法相关的链接(取决于您的想法)。



在描述时更清楚一点你打算做什么。



Not really enough information. All else being equal, you should save the images in as compressed a form as is agreeable with your needs. For example, .jpg for size, .png if you also need features such as transparent layers.

You will gain nothing by simply saving links in a database - unless it also includes context for the links. In that situation you can use the database to look up links related to some idea (depends, again, upon what's on your mind).

Be a little clearer in describing what you plan to do.


是的,你可以最小化像素和图像压缩它大小而不会失去其图像质量。并使用适当的名称将它们存储在文件系统或ftp位置,以便使用文件IO操作轻松引用它。



如果您将图像放在ftp上,那么它将增加从该位置获取它。





你可以巧妙地选择你想去的方式。对于桌面应用程序,您可以使用本地存储或远程驱动器来保存图像以提高性能。





问候

Mubin
Yes you can minimize pixels and image to compress its size without loosing its image quality. and store these in file system or on ftp location with appropriate names to refer it easily using file IO operations.

If you place images on ftp then it will add overhead of fetching it from that location.


you can smartly choose the way which way you want to go. and for Desktop application you can use local storage or remote drive to hold your images for faster performance.


Regards
Mubin


这篇关于哪个是在服务器上保存图片的最佳方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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