相关文章  
  • 教你如何IIS信息服务器排错指南
  • 加固Windows Server 2003 IIS 服务器(1)
  • 基于IIS的WEB服务器架建
  • 基于Web的系统测试与传统的软件测试
  • 修改IIS的Banner隐藏操作系统版本
  • 用IIS+ASP建网站的安全性分析
  • 让IIS6.0可以执行WSH中的RUN命令
  • 虚拟主机IIS 防范入侵常见问答
  • 给IIS Web虚拟主机服务器装上一把锁
  • 精心配置IIS打造安全Web服务器
  •   推荐  
      科普之友首页   专利     科普      动物      植物        天文   考古   前沿科技
     您现在的位置在:  首页 >>文献 >>培训

    用SQL Server为Web浏览器提供图像(三)8

    ActiveConnection = mAdoConn
       mAdoRst.Open SqlText, , adOpenStatic, adLockReadOnly 'Open recordset.
      
      Exit Sub
      
      
      Error_handler:
       Call HandleError
      End Sub
      
      Private Sub ReadFromDB(fld As ADODB.Field, ByVal DiskFile As String, _
                FldSize As Long)
      Dim NumBlocks As Integer
      Dim LeftOver As Long
      Dim byteData() As Byte  '字节数组,用于长的可变二进制数据LongVarBinary。
      Dim strData As String  '字符串,用于长的可变二进制数据LongVarChar。
      Dim DestFileNum As Integer
      Dim pic As Variant
      Dim i As Integer
      '**********************************************************
      '作用:提取二进制数据并把数据放入文件。
      '输入:图片字段,文件名/位置和数据尺寸。
      '**********************************************************
      
       If Len(Dir(DiskFile)) > 0 Then '删除已经存在的目标文件。页码:[1] [2] [3] [4] [5] [6] [7] [8] [9]8页、共9页
         

          设为首页       |       加入收藏       |       广告服务       |       友情链接       |       版权申明      

    Copyriht 2007 - 2008 ©  科普之友 All right reserved