启航-▲每天有个新的开始▲  
公告
日历
统计
  • 随笔 - 94
  • 文章 - 2
  • 评论 - 8
  • 引用 - 2

导航

 
    Dim ImgData() As Byte
        Dim ImgDataStream As Stream
        Dim n As Integer

        If titlefile.PostedFile.FileName.Length 
> 0 Then
            If Me.titlefile.PostedFile.ContentLength 
<> 0 Then
                ImgDataStream 
= Me.titlefile.PostedFile.InputStream
                ReDim ImgData(Me.titlefile.PostedFile.ContentLength)
                
'将文件数据转换为Byte型
                n = ImgDataStream.Read(ImgData, 0, Me.titlefile.PostedFile.ContentLength)
                ImgDataStream.Close()
            end if 
         end if
posted on 2007-10-18 11:26 bighope 阅读(15) 评论(0) 编辑 收藏
 
Copyright © bighope Powered by: 博客园 模板提供:沪江博客