Hello,
Here is the sample code for display an image stored in SQL Server, but I think you can change a little to make it work for Access
protected void Button2_Click(object sender, EventArgs e)
{
string connect = "Data Source=localhost\\sqlexpress;Integrated Security=True;Initial Catalog=pubs";
System.Data.SqlClient.SqlConnection sqlconnect = new System.Data.SqlClient.SqlConnection(connect);
string command = "select * from image";
System.Data.SqlClient.SqlCommand sqlcommand = new System.Data.SqlClient.SqlCommand();
sqlcommand.CommandText = command;
sqlcommand.Connection = sqlconnect;
System.Data.SqlClient.SqlDataReader dr;
sqlconnect.Open();
dr = sqlcommand.ExecuteReader();
while (dr.Read())
{
Response.Clear();
Response.ClearHeaders();
Response.ContentType = dr[1].ToString();
Response.AddHeader("content-disposition", "form-data;filename="+dr[2].ToString()+")");
Response.BinaryWrite((byte[])dr[0]);
Response.Flush();
Response.End();
}
sqlconnect.Close();
}
Hope it helps,
Jessica