Re: 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.Image.FromStream(MyStream).
>How can I do the conversion?
Dim MyStream As Stream = New MemoryStream(myByteArray)
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ |
http://www.dotnetinterop.com
Please reply only to the newsgroup.
.
Relevant Pages
- Re: fast stable sort
... For fastest load, at expense of slower sort, you ask the operating ... and you memory-map the file directly into that array. ... memory of your big array. ... possible to assure locality of reference and thus avoid thrashing ... (comp.programming) - Re: How can I create a 2D ArrayList? String usually.
... I basically would like a 2 column array or whatever that will be static, ... in values won't change after I load them and I would like to fairly quickly ... > Array.IndexOf is probably going to yield linear performance as you add ... you might be better off using hashtables. ... (microsoft.public.dotnet.languages.csharp) - Re: problem with [array get ...] -> file -> string -> [array set ...]
... I'm pulling my hair out trying to save and load data to a file. ... got a large array (probably filled with all sorts of "special" ... puts "saving test to test.save" ... (comp.lang.tcl) - Re: editing a mysql record using php and website ?
... And then when I hit submit I want to insert the new data into the ... If you KNOW its a single record, load the data into an array and then index the array into the text fields. ... echo "<input type='text' name='txtvendor' ... (comp.lang.php) - Re: Listbox Sideways
... If that's the case then just modify the bit that loads up the array to ... Variant, varCol As Variant, varCode As Variant) ... Dim varRetval As Variant ... 'Load up the array here, as the call back function calls itself, ... (microsoft.public.access.modulesdaovba) |
|