hey need immediate help in this!!!!
i just want to know how to get pictures from a database and display it on my website
the actuall output is display on the following link and i'm using visual studio.NET with c#
http://www.gsmarena.com/nokia-phones-1.php
thanks
Loading
sai babuPosted Oct 12, 2007, 8:53 AM
Public Sub Page_Load(sender As Object, e As EventArgs)
dim MyConnection as New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\ruta\fotosarq.mdb;")
dim MyCommand as New OleDbCommand("Select * from Imagenes",MyConnection)
myConnection.Open()
Dim myDataReader as OleDbDataReader
myDataReader = myCommand.ExecuteReader(CommandBehavior.CloseConne ction)
you check the following code to display the images in you applciation
myDataReader.Read()
Response.ContentType = "image/JPEG"
Response.BinaryWrite(myDataReader.Item("Foto"))
myConnection.Close()
End Sub