摘要: sql field image长度:自定义,1为一个字节,看你要上传多大的照片,长度就给多少。file类型的input,转成byte[] HttpPostedFile upFile = filePhoto.PostedFile; int fileLength = upFile.ContentLength; if (fileLength > 0) { Byte[] FileByteArray = new Byte[fileLength]; Stream StreamObj... 阅读全文
posted @ 2012-03-23 00:21 随风ˇ止步 阅读(499) 评论(0) 推荐(0) 编辑