Alex's Weblog

Weblog di Ermanno Goletto (Codename Alex - A Learning EXperience)
posts - 438, comments - 4214, trackbacks - 294

My Links

News

Il blog è stato
trasferito al
 seguente link:


DevAdmin Blog

Add my blog to Live

Foto

Curriculum Vitae


Il contenuto di questo blog e di ciascun post viene fornito “così come é”, senza garanzie, e non conferisce alcun diritto. Questo blog riporta il mio personale pensiero che non riflette necessariamente il pensiero del mio datore di lavoro.

Logo Creative Commons Deed


Logo MCTS

Logo MCSA

Logo MCP

Logo Microsoft Certified Business Management Solutions Professional

Microsoft Certified Business Management Solutions Specialist


Logo UGIdotNET UGIdotNET Contributor


Logo UGISS UGISS Contributor


Logo SysAdmin.it SysAdmin.it Staff


Article Categories

Archives

Post Categories

Blogs

Database

Development

Friends

IT

Knowledge Base

Links

MBS

MCP

MVP Sites

User Groups

Virtualization

Caricare un PictureBox con un file utilizzando un MemoryStream

Caricando il PictureBox utilizzando un MemoryStream si evita di tenere bloccato il file.

'Caricamento file nel Buffer
Dim fs As New System.IO.FileStream("E:\Test.bmp", IO.FileMode.Open, IO.FileAccess.Read)
Dim buffer(CInt(fs.Length) - 1) As Byte

fs.Read(buffer, 0, CInt(fs.Length))
fs.Close() : fs =
Nothing

'Caricamento Buffer nel MemoryStream
Dim ms As New System.IO.MemoryStream(buffer)
buffer =
Nothing

'Lettura immagine da MemoryStream
Me.PictureBox1.Image = System.Drawing.Image.FromStream(ms)

Print | posted on martedì 12 luglio 2005 20:11 | Filed Under [ Code & Snippet .NET Framework ]

Feedback

Gravatar

# check cashing near me

Thanks for your time designed for authoring it important and even most significantly helpful guide. You have got a real product designed for the process project. At present follow-up check cashing near me One’s own several other articles and reviews also are attractive
25/08/2017 16:47 | Pervez
Comments have been closed on this topic.

Powered by:
Powered By Subtext Powered By ASP.NET