Home All Groups Group Topic Archive Search About

byte array to picturebox

Author
2 Mar 2007 10:43 PM
PC
i have a byte array that contains a bitmap
example:
Dim B() As Byte
Open App.Path & "\bitmap.bmp" For Binary As #1
     ReDim B(0 To LOF(1) - 1)
     Get #1, , B
Close
i would like to show that bitmap in a image control or a picturebox control
in reality this byte array is in a blob field in access
my problem is
how to show that bitmap in a picturebox/image without first put-ing it to
disk and loadpicture-ing it

Author
3 Mar 2007 3:30 PM
BeastFish
http://groups.google.com/group/microsoft.public.vb.general.discussion/msg/e0
dc770b8a3b13a8?hl=en




Show quoteHide quote
"PC" <On***@pandora.be> wrote in message
news:uBIahtRXHHA.4764@TK2MSFTNGP05.phx.gbl...
> i have a byte array that contains a bitmap
> example:
> Dim B() As Byte
> Open App.Path & "\bitmap.bmp" For Binary As #1
>      ReDim B(0 To LOF(1) - 1)
>      Get #1, , B
> Close
> i would like to show that bitmap in a image control or a picturebox
control
> in reality this byte array is in a blob field in access
> my problem is
> how to show that bitmap in a picturebox/image without first put-ing it to
> disk and loadpicture-ing it
>
>