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
benefits of migration from asp to asp.net hi frnds, i have to give presentation to a client about how useful would be migrating their project from asp to asp.net .plz give me some points which i should incorporate in my ppt thanks
What is application and session in asp.net?
there is two functions function a and function b like fun a(){.... ..... } fun b() { } in function b i write the coding to add two numbers and i need to dispaly the sum result in function a with out using global variable. how we do?
Is it possible to develop a single web application using ASP.NET webforms and ASP.MVC?
What is viewstate in asp net with example?
Will session work if cookies is disabled?
What is asp according to you?
How we implement web farm and web garden concept in asp.net?
What is loop in asp.net?
What is datagrid asp.net?
What is routing in MVC?
What is postback pixel?
What is HTTPModule and HTTPcontext? What is the use of each?
What is a session in programming?
Explain about the .NET framework?