HTTPPostedFile和fileupload.postedfine之间的区别 [英] difference between HTTPPostedFile and fileupload.postedfine

查看:100
本文介绍了HTTPPostedFile和fileupload.postedfine之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,

HTTPPostedFile和fileupload.postedfile之间有什么区别

为了进一步澄清,我的意思是写以下行的好处是什么

[HttpPostedFile uploadfile = fileupload1.PostedFile; ]

请记住,我可以使用下面的两行.

byte [] img =新的byte [Fileupload1.PostedFile.ContentLength];

byte [] img =新的byte [uploadedfile.ContentLength];

那么使用HTTpPostedFile有什么好处.




最好的问候,

Dears,

is there a difference between HTTPPostedFile and fileupload.postedfile

for more clarification i mean that what is the advantage of writing the below line

[ HttpPostedFile uploadedfile = fileupload1.PostedFile; ]

keep in mind that i can use the two below lines .

byte[] img = new byte[Fileupload1.PostedFile.ContentLength];
OR
byte[] img = new byte[uploadedfile.ContentLength];

So what is the advantage of using HTTpPostedFile .




Best Regards,

推荐答案

您好,请点击以下链接

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.fileupload.postedfile.aspx [
Hi, follow below link

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.fileupload.postedfile.aspx[^]


这篇关于HTTPPostedFile和fileupload.postedfine之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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