Ceriwis

Ceriwis (https://forum.ceriwis.com/forum.php)
-   Programming (https://forum.ceriwis.com/forumdisplay.php?f=63)
-   -   nanya load image dari mysql di vb.net 2008 (https://forum.ceriwis.com/showthread.php?t=574408)

PHPmaster 20th November 2011 09:16 AM

nanya load image dari mysql di vb.net 2008
 

gan ane lagi buat program untuk teman ane



pas coba baca data bertipe blob kok gak bisa yah, errornya parameter is not valid



Dim imageBytes() As Byte = Nothing

imageBytes = CType(.objDataReader.Item("Gambar_Depan"), Byte())

Dim ms As New System.IO.MemoryStream(imageBytes.Length)

Dim bmap As New Bitmap(ms)

pb_gambar_depan.Image = CType(bmap, Image)

pb_gambar_depan.SizeMode = PictureBoxSizeMode.StretchImage



knp ya gan, bantuian ane ya



:ceriwislove:

</div>


All times are GMT +7. The time now is 11:18 AM.