于军ID:lovexiaoxiao
93次访问,排名2万外好友8人,关注者8
软件编程
lovexiaoxiao的文章
原创 1 篇
翻译 0 篇
转载 0 篇
评论 0 篇
大款的公告
大家好,我又回来了!
最近评论
文章分类
    收藏
      相册
      存档
      软件项目交易
      订阅我的博客
      XML聚合  FeedSky
      订阅到鲜果
      订阅到Google
      订阅到抓虾
      订阅到BlogLines
      订阅到Yahoo
      订阅到GouGou
      订阅到飞鸽
      订阅到Rojo
      订阅到newsgator
      订阅到netvibes

      原创 Image怎样显示数据库图片?收藏

       | 

       int imgid = 5;
                      string sql = "SELECT * FROM ImageStore WHERE ImageID = '"+ imgid+"'";
                      string connstr="Server=127.0.0.1;database=yujinsheng;uid=sa;Pwd=sa;";
                      SqlConnection connection = new SqlConnection(connstr);
                      SqlCommand command = new SqlCommand(sql, connection);
                      connection.Open();
                      SqlDataReader dr = command.ExecuteReader();
                      if (dr.Read())
                      { 
                      
                          Response.BinaryWrite((byte[])dr["ImageDate"]);
                      } 

      怎么显示呀!求教各位大侠!

      发表于 @ 2007年10月30日 10:01:00|评论(loading...)|编辑|收藏

       | 

      评论:没有评论。

      发表评论  


      当前用户设置只有注册用户才能发表评论。如果你没有登录,请点击登录
      Csdn Blog version 3.1a
      Copyright © 大款