Click here to Skip to main content
15,899,679 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: MSACESS and @@IDENTITY Pin
Guffa5-Oct-06 2:31
Guffa5-Oct-06 2:31 
AnswerRe: MSACESS and @@IDENTITY Pin
morteza576-Oct-06 12:11
morteza576-Oct-06 12:11 
QuestionPanel Problem Pin
_mubashir4-Oct-06 23:44
_mubashir4-Oct-06 23:44 
AnswerRe: Panel Problem Pin
Goalie355-Oct-06 5:24
Goalie355-Oct-06 5:24 
QuestionGUI in ASP.NET 2.0 Pin
jrsreenivas4-Oct-06 23:38
jrsreenivas4-Oct-06 23:38 
AnswerRe: GUI in ASP.NET 2.0 Pin
l0kke5-Oct-06 5:17
l0kke5-Oct-06 5:17 
Questionretrive image form database in imagebox. Pin
Deepak the Cool4-Oct-06 23:12
Deepak the Cool4-Oct-06 23:12 
AnswerRe: retrive image form database in imagebox. Pin
Chris Buckett5-Oct-06 3:49
Chris Buckett5-Oct-06 3:49 
This article[^] details how to retrieve an image from a database.

Basically, you create an aspx page called something like LoadImage.aspx.
The LoadImage.aspx page contains the code to get the image from the database (the aspx page content doesn't matter as it gets replaced by the image data).

///
/// imageData is the data loaded from the database in the Page_Load
///
private void ShowImageData(byte[] imageData)
    {
        // Clear Response buffer
        Response.Clear();

        // Set ContentType to the ContentType of our file
        Response.ContentType = "image/jpeg"; 

        // Write data out of database into Output Stream
        Response.OutputStream.Write(imageData, 0, imageData.Length);

        // End the page
        Response.End();
    }


Then in you web page where you want to display the image, you just put a link to the image: e.g. where the imageID is the image id in the database to load. This would be accessed in the Page_Load of LoadImage.aspx

ChrisB
AnswerRe: retrive image form database in imagebox. Pin
postmaster@programmingknowledge.com5-Oct-06 6:19
postmaster@programmingknowledge.com5-Oct-06 6:19 
QuestionDisplay of checkbox Pin
Kissy164-Oct-06 23:06
Kissy164-Oct-06 23:06 
QuestionGridView Pin
AnhTin4-Oct-06 22:45
AnhTin4-Oct-06 22:45 
AnswerRe: GridView Pin
minhpc_bk5-Oct-06 15:49
minhpc_bk5-Oct-06 15:49 
GeneralRe: GridView Pin
AnhTin5-Oct-06 17:57
AnhTin5-Oct-06 17:57 
QuestionWeb page authentication using Active Directory [modified] Pin
isaii4-Oct-06 22:21
isaii4-Oct-06 22:21 
AnswerRe: Web page authentication using Active Directory Pin
minhpc_bk5-Oct-06 15:27
minhpc_bk5-Oct-06 15:27 
GeneralRe: Web page authentication using Active Directory Pin
isaii12-Oct-06 22:25
isaii12-Oct-06 22:25 
Questionproblem in displaying searched records Pin
asifbhura4-Oct-06 21:16
asifbhura4-Oct-06 21:16 
AnswerRe: problem in displaying searched records Pin
just3ala24-Oct-06 21:59
just3ala24-Oct-06 21:59 
QuestionRegarding Constructing Regular Expression Pin
VishalSharmaDev4-Oct-06 21:14
VishalSharmaDev4-Oct-06 21:14 
AnswerRe: Regarding Constructing Regular Expression Pin
minhpc_bk5-Oct-06 15:25
minhpc_bk5-Oct-06 15:25 
QuestionHow to Set the URL befor PostBack (Passing Data in URL) [modified] Pin
Jay_se4-Oct-06 20:52
Jay_se4-Oct-06 20:52 
AnswerRe: How to Set the URL befor PostBack (Passing Data in URL) Pin
just3ala24-Oct-06 22:01
just3ala24-Oct-06 22:01 
AnswerRe: How to Set the URL befor PostBack (Passing Data in URL) [modified] Pin
Jay_se4-Oct-06 22:14
Jay_se4-Oct-06 22:14 
QuestionHow to temporarly suspend the server execution Pin
srilu nagalla4-Oct-06 20:41
srilu nagalla4-Oct-06 20:41 
AnswerRe: How to temporarly suspend the server execution Pin
minhpc_bk5-Oct-06 15:17
minhpc_bk5-Oct-06 15:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.