TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ramesh G
NA
212
65.2k
Image not show in picture box
Oct 17 2019 12:42 AM
i have get store the image in varbinay format in sql datatbase. i get the record in data table. record show in datatable,bt show time error occured.how can i fix the error
Error: .'fromstream parameter is not valid"
if (dt.Rows.Count > 0)
{
Byte[] MyData = new byte[0];
MyData = ((Byte[])dt.Rows[0]["Company_Logo"]);
if (MyData != null)
{
MemoryStream stream = new MemoryStream(MyData);
pbox_logo.Image = Image.FromStream(stream);
}
}
Reply
Answers (
2
)
Disable right click on the textbox WITHOUT alert
how to write the data from the database into the textfile??