Click here to Skip to main content
15,911,531 members

Comments by Matt Jun (Top 10 by date)

Matt Jun 11-Sep-11 23:18pm View    
yeah I've done this in a Window Application using C# alone, But now I am developing web app which I want to show Image from Binary image in the database.
Matt Jun 9-Sep-11 2:03am View    
the Uploading to database part. I actually saved it to the database. But I saved it first to a folder then I fetch it using different button. and whoala save to database. I actually want to be more simple. On click of the Upload button. SAVED! to database. nothing to click more.
Matt Jun 9-Sep-11 1:50am View    
what if I want to display an image depending on its database ID?

I have here the code:

void Show_Logo(object data)
{
if (data != null)
{
if (Request.QueryString["id"] != null)
{
Byte[] bytes = ((ihaveimage)data).Logo;
Response.Buffer = true;
Response.Charset = "";
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentType = ((ihaveimage)data).Logo.ToString();
Response.BinaryWrite(bytes);
Response.Flush();
Response.End();
}
}
}

THEN:

<asp:Image ID="imghere" runat="server" ImageUrl="mypage.aspx?id=1" />

this only display the first row/image on the database
Matt Jun 1-Aug-11 3:05am View    
I am using ASP.Net. I am now currently using DataGridView.
Matt Jun 1-Aug-11 3:04am View    
Deleted
I am using ASP.Net. I am now currently using DataGridView.