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
Marvin Gapuz
NA
85
6.1k
System.InvalidCastException: 'Unable to cast object of type
Feb 23 2019 4:51 AM
byte[] ImageArray = (byte[])dgvMPdetails.CurrentRow.Cells[16].Value;
if (ImageArray.Length == 0)
{
MessageBox.Show("Error");
}
else
{
ImageByteArrays = ImageArray;
pbx1.Image = Image.FromStream(new MemoryStream(ImageArray));
}
Hello Please Help me. I keep on encountering this problem whenever I run this code.
System.InvalidCastException: 'Unable to cast object of type 'System.String' to type 'System.Byte[]'.'
Reply
Answers (
1
)
DataGridView from Form1 to PictureBox from Form2
how to mark as read only the last row of DataGridView ?