Form I use:
I can now see that I can still view my image without multipart form, thanks. I'm not able to see my text fields / submit button with the image from DB. Here is the show ShowTheImage function: private void ShowTheImage(int FileID) { // Define SQL select statement string SQL = "SELECT FileSize, FileData, ContentType FROM tblFile WHERE FileID = " + FileID.ToString(); // Create Connection object SqlConnection dbConn = new SqlConnection("server=runar;database=ImgDb;user=sa"); // Create Command Object SqlCommand dbComm = new SqlCommand(SQL, dbConn); // Open Connection dbConn.Open(); // Execute command and receive DataReader SqlDataReader dbRead = dbComm.ExecuteReader(); // Read row dbRead.Read(); // Clear Response buffer Response.Clear(); // Set ContentType to the ContentType of our file Response.ContentType = (string)dbRead["ContentType"]; // Write data out of database into Output Stream Response.OutputStream.Write((byte[])dbRead["FileData"], 0, (int)dbRead["FileSize"]); // Close database connection dbConn.Close(); // End the page Response.End(); } Runar