我这样上传图片,为什么不支持.gif图片呢?
liuvb 2009-04-24 11:33:29 前台.aspx
<INPUT type="file" size="50" id="upFile" runat="server">
后台.cs
HttpPostedFile upPhoto = files[iFile];
int upPhotoLength=upPhoto.ContentLength;
byte[] PhotoArray=new Byte[upPhotoLength];
Stream PhotoStream=upPhoto.InputStream;
PhotoStream.Read(PhotoArray,0,upPhotoLength);