-1

请告诉我如何在水晶报表选项卡图片选项卡上显示数据库中的图像。图形位置未显示在水晶报告中 vs 2008 尽早给我答案

4

1 回答 1

0

我没有得到您的问题,但是这两个功能可能会帮助您将图像保存在字节字段中的数据库中

Public Function BytesToImage(ByVal ImageBytes() As Byte) As Image
    Dim imgNew As Image
    Dim memImage As New System.IO.MemoryStream(ImageBytes)
    imgNew = Image.FromStream(memImage)
    memImage.Dispose()
    Return imgNew
End Function

Public Function ImageToBytes(ByVal Image As Image) As Byte()
    Dim memImage As New System.IO.MemoryStream
    Dim bytImage() As Byte

    Image.Save(memImage, Image.RawFormat)
    bytImage = memImage.GetBuffer()
    memImage.Dispose()
    Return bytImage
End Function
于 2013-08-11T13:33:50.740 回答