bytes to io.stream

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    bytes to io.stream

    I have an array of bytes that contains a bitmap file. I want to convert the
    array into IO.Stream and load the image using
    MyPictureBox.Im age.FromStream( MyStream).
    How can I do the conversion?

    Thanks.
  • Mattias Sjögren

    #2
    Re: bytes to io.stream

    >I have an array of bytes that contains a bitmap file. I want to convert the[color=blue]
    >array into IO.Stream and load the image using
    >MyPictureBox.I mage.FromStream (MyStream).
    >How can I do the conversion?[/color]

    Dim MyStream As Stream = New MemoryStream(my ByteArray)



    Mattias

    --
    Mattias Sjögren [MVP] mattias @ mvps.org
    http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
    Please reply only to the newsgroup.

    Comment

    Working...