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
Bhavesh Vankar
683
1.1k
87k
Listbox double click get image on image control
Jan 11 2021 10:33 AM
i have tried below code to get image on image control but when i double click image not getting and display like crack. what is wrong in this code. ?
i tried to display stored binary image from sql server to image control.
after double click on listbox control.
string
id = searchRecord.SelectedItem.Value;
if
(dt.Rows.Count > 0)
{
byte
[] bytes = (
byte
[])dt.Rows[0][
"V_IMAGE"
];
string
base64String = Convert.ToBase64String(bytes, 0, bytes.Length);
vImage.ImageUrl =
"data:image/jpg;base64"
+ base64String;
}
Reply
Answers (
3
)
Print and save records in C# web application.
issues with To Bcc and CC when building an email message using Graph