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 inproc and outproc?
Explain diff. Betn dataset and recordset?
What are custom controls?
What is localhost in asp.net?
What is another word for redirect?
What are the advantages and disadvantages of session?
What is the difference between asp.net and mvc?
Where is the session stored?
What are the difference between overriding and overloading?
Which object encapsulates state or data of a user?
How we can force all the validation controls to run?
Explain how dot net compiled code will become platform independent?
1.what is the application pool. 2.what is the HttpModile and Http Handler. 3.C# 3.0 Features ? 4.Anonoymous Type,methopd and claas in 3.0? 5.difference between statsic and const ? 6.session vs application 7.state management clint side and server side ? 8.Genric list 9.c# 3.0 vs 3.5
Differentiate the session object and application object?
How does asp.net page work?