Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共6 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:图片显示问题

1楼
刘林 发表于:2024/6/8 22:05:00
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wDFAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRQBAwQEBQQFCQUFCRQNCw0UFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFAIDBAQFBAUJBQUJFA0LDRQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU/8AAEQgAsACgAwEiAAIRAQMRAv/EAaIAAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKCxAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6AQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgsRAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/dAAQAA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Ix0UDP9aksvDsFnjjfJ3Zq3ZIiOBSCI965ZYeEndn6HheJFQoqEVr3KH2QAjArpre2Wa0RTGCuOhFYzxkEYFdPYRkWkefSk4RgrI8rGZ/iJS56LszmtS8B2F6N6K1rL1DR9PxFU4tETTiYw/mn+9jFdwy/Ka528TE7ZqI0YT3R34LiyvWkqdVaoxriwWRSGUEHrXI6j4GjEwmsXMMgOcdv/rV3jrxUXl7h0qfqqTuj6KpnNHlfOk7o53TdKumCrcSF9vBPrXVWVsI4woHFNggyRWlBCV5xXYkoKyPyrMsVGrU9zQdFCAOBU6RVLGgxUsac1MmeA5DoU2CpgMUgGBTq4pO5zN3HhaCtPAp22seaxlcgK0m3cuKnKZFN281fPcdyjJbAtnFQy23HA61qlNwqJ4uuOa3jVTNY1DDktwTjFN+zAdK1JYAahEPWt+Y6o1XYpG1zg1s24K2y8dBUEcW7AxU+t340TRXuvJMuxRhRxz25rCUtbFQrtTUWLHMHyMViaiha5bArM8HeLJ9UvXguIcsxOHTgd+1dHeRBpTWkXZnZUqKlUVkYjQHilFsc1p+QAORTo4RnpWvMRLFSa3KtvbBRmrkSHHNTLCMcCniPFTzo8+VTmYwLU8cfFEceasBdormnPoYykR7aXbT9vtShaw5iLkkeCPWpAtV7aQED9KuKM1jVvFmc1ZkezNIY6n20FawUzLmK23FI65qcpTSlXzlXKjx5qBo8GtBlzUTR/lXTCr3NYzsVI1w4rVuLSG+tGt50EkTjDKappD84NaijAFRWlezRNSV9UYeleEdO0Nne1STe3JMr7sfSpJoAXP1rXccVRkT5j9amnVfVgqspO8mUHg4pixYNXzHmm+RzXUqvc05yAJxTli3VOtv61KsYHaspVbEORGkYUUpFSAZGR0NG3iufnvuRci20u2pNlBFUmO5/9k=



数据表的图片列,是二进制码,请问这个如何在窗口的PICTUREBOX中显示,对列有什么要求?
2楼
刘林 发表于:2024/6/8 22:31:00
  Dim pbx As WinForm.PictureBox = e.Form.Controls("PictureBox2")
    Dim cmd As New SQLCommand
    Dim ds As DataTable
    cmd.Conne cti
    cmd.Com mandText = "SEL  ECT match_image,id From {camera_rec_record}  where id  = '" & tb1.Current("id") & "'"
    ds = cmd.ExecuteReader()
    If ds.datarows.count > 0 Then
        Dim imageByte() As Byte = ds.datarows(0)("match_image")
        Dim ms As New system.IO.MemoryStream(imageByte)       
        Dim image As Image = Image.FromStream(ms)
        pbx.Image = image
    Else
        pbx.Image = Nothing
    End If


无法将类型为“System.String”的对象强制转换为类型“System.Byte[]”。

照着这样写,出现上面错误,是什么原因
3楼
有点蓝 发表于:2024/6/10 21:08:00
说明match_image不是二进制列

http://www.foxtable.com/webhelp/topics/2950.htm

Access对应的列类型为"OLE对象",SQL Server对应的列类型为"Image"
[此贴子已经被作者于2024/6/10 21:09:07编辑过]
4楼
刘林 发表于:2024/6/11 21:20:00
是image,还是不行
5楼
有点蓝 发表于:2024/6/11 21:27:00
image列我测试没有问题哦。

这种列的数据要使用sql,或者代码插入数据哦。不能直接复制粘贴到这种列的单元格里
[此贴子已经被作者于2024/6/11 21:28:34编辑过]
6楼
有点橙 发表于:2024/6/12 2:17:00
不清楚
[此贴子已经被作者于2024/6/12 2:17:07编辑过]
共6 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .02344 s, 2 queries.