asp.net中的附件 [英] Attachment in asp.net

查看:71
本文介绍了asp.net中的附件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我需要附上文件才能说一些ID.
但是我应该通过哪种方式来处理字节内容到数据库,或者我们应该创建一个副本到我们的服务器并在读取时可以从文件读取.最好的方法是什么?

谢谢,

Amit

Hi All ,

I need to attach document for some say id..
but which way i should do it by coping byte content to the Database or should we create a copy to the our server and while reading we can read from file.What should be the best approach?

Thanks,

Amit

推荐答案

我认为最好的方法是将其存储在DB中,
由于您可以将数据库移动到任何地方,因此无需维护文件位置,并且可以安全删除,并且属于机密.

谢谢
I think the best approch would be to Store it in DB,
for the reason you can Move your DB anywhere, No Need to take care of File location, and will be safe from deletion, and will be Confidential.

Thanks


这没有道理.要从db访问此类文件,需要更多的处理时间.

因此,我的建议是将此类文件放置在文件夹中,然后仅将该文件的路径复制到db中.

希望这对您有帮助.:)
It doesn''t make sense. To access such file from db more processing time reqd.

So my suggestion is to place such file in a folder and only copy the path of that file in db.

Hope this may help u.. :)


这篇关于asp.net中的附件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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