Image Display - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Image Display

techkidtechkid Posts: 2Member
after saving a pic in a sql2005 database using this line of code in vb Iam using the fileupload control
how can I then display the picture? the image column in the database is of varbinary type
should I even be saving the pics in a database anyway?
help needed here asap if anyone can assist I would be very gratefull , thanx in advance.
this is how Iam saving into the dbase
Dim filedata As Byte() = New Byte(FileUpload1.PostedFile.ContentLength - 1) {}
Dim uploadedPostedFile As HttpPostedFile = FileUpload1.PostedFile()
uploadedPostedFile.InputStream.Read(filedata, 0, CInt(FileUpload1.PostedFile.ContentLength))
myCommand.Parameters.AddWithValue("@PropPic", filedata)


Sign In or Register to comment.