Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
error during image retrieving from data base
Mks Khalid
Jun 28 2014 3:49 AM
615
Reply
hey i m using the following code to display image from database it give an errro
error=paramer is not valid
MemoryStream stream = new MemoryStream();
con.Open();
SqlCommand command = new SqlCommand("select image from loll", con);
byte[] image = (byte[])command.ExecuteScalar();
stream.Write(image, 0, image.Length);
con.Close();
Bitmap bitmap = new Bitmap(stream);
pictureBox1.Image = bitmap;
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
how to use excel indirect function in c#
facebook Login