in database table is thier . in that table fields are
photoid , photoname,photo... i want display image in the
gridview
Answer Posted / .....
initially while inserting image into database take the
database field in oracle as BLOB in sql as image
during insertion convert the image file into bytes and
insert it into the database
during the display of image in datagrid take a image
template and display the converted values
sample code to get the image:
public byte[] spic(string cm,int id)
{
con = new OracleConnection(cm);
OracleCommand cmd = new OracleCommand("select
photo from kir_image where eid= "+id +" ", con);
con.Open();
byte[] img = (byte[])cmd.ExecuteScalar();
con.Close();
return img;
}
use Response.BinaryWrite to display the image
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is a form tag?
What do you mean by serialize?
Where is http session stored?
What is the difference between ASP Session State and ASP.Net Session State?
What are validator? Name the validation controls in asp.net? How do you disable them?
Explain weak typing and strong typing.
How can we create Tree control in asp.net?
Explain about Application and Session Events ?
Explain the flow of processing of the request? : asp.net mvc
What is the use of session?
What is autopost?
Are xaml file compiled or built on runtime?
What is data caching?
What is the size of Get method and how much data it can store?
Which validator control you use if you need to make sure the values in two different controls matched?