Foxtable(狐表)用户栏目专家坐堂 → [求助]二进制


  共有3000人关注过本帖树形打印复制链接

主题:[求助]二进制

帅哥哟,离线,有人找我吗?
有点甜
  21楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/6/5 14:36:00 [只看该作者]

1、你插入代码、添加代码怎么写的?

 

2、你现在的代码怎么写的?


 回到顶部
帅哥哟,离线,有人找我吗?
江南小镇
  22楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:七尾狐 帖子:1712 积分:11426 威望:0 精华:0 注册:2015/6/22 8:11:00
  发帖心情 Post By:2018/6/5 14:45:00 [只看该作者]

If Tables("通讯录").Current Is Nothing Then
    Return
End If
Dim dr As DataRow = Tables("通讯录").Current.DataRow
Dim dlg As New OpenFileDialog
dlg.Filter = "图形文件|*.bmp;*.jpg;*.gif;*.png"
If dlg.ShowDialog = DialogResult.OK Then
    dr.SQLInsertFile("个人电子信息_照片",dlg.FileName) '插入文件
    Dim pic As WinForm.PictureBox = e.Form.Controls("PictureBox1")
    pic.Image = GetImage(dlg.FileName)
End If
FileSys.CopyFile("H:\二进制\图片.txt", "h:\二进制列\mytest.txt",True)

 回到顶部
帅哥哟,离线,有人找我吗?
有点甜
  23楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/6/6 10:44:00 [只看该作者]

If Tables("通讯录").Current Is Nothing Then
    Return
End If
Dim dr As DataRow = Tables("通讯录").Current.DataRow
Dim dlg As New OpenFileDialog
dlg.Filter = "图形文件|*.bmp;*.jpg;*.gif;*.png"
If dlg.ShowDialog = DialogResult.OK Then
    dr.SQLInsertFile("个人电子信息_照片",dlg.FileName) '插入文件
    Dim pic As WinForm.PictureBox = e.Form.Controls("PictureBox1")
    pic.Image = GetImage(dlg.FileName)

    FileSys.CopyFile(dlg.FileName, "h:\二进制列\mytest.txt",True)
End If


 回到顶部
总数 23 上一页 1 2 3