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
Goran Bibic
480
2.9k
200.7k
Select image from db ms sql c#
Jan 1 2019 6:19 AM
Need to select image from db
On my code result is System.Byte[]
I need to display picture
Some help?
Thank you
string
memorandum =
""
;
using
(SqlConnection openCon =
new
SqlConnection(con))
{
SqlDataReader reader;
SqlCommand cmd =
new
SqlCommand(
"SELECT memorandum from dbo.podaci_o_korisniku"
);
cmd.Connection = openCon;
openCon.Open();
reader = cmd.ExecuteReader();
while
(reader.Read())
{
byte
[] ap = (
byte
[])podaci_o_korisnikuDataGridView.SelectedRows[0].Cells[
"memorandum"
].Value;
memorandum = reader[0].ToString();
}
openCon.Close();
}
Reply
Answers (
9
)
Want to display the data in the table
Website content share to facebook