View Single Post
  #1  
Old 20th November 2011
PHPmaster PHPmaster is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 332
Rep Power: 14
PHPmaster mempunyai hidup yang Normal
Default 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





</div>

Reply With Quote