Click here to Skip to main content
15,898,222 members
Home / Discussions / Web Development
   

Web Development

 
QuestionHelp with database Pin
gReaen25-Nov-07 5:55
gReaen25-Nov-07 5:55 
AnswerRe: Help with database Pin
Paul Conrad25-Nov-07 9:42
professionalPaul Conrad25-Nov-07 9:42 
QuestionRe: Help with database Pin
gReaen25-Nov-07 18:13
gReaen25-Nov-07 18:13 
AnswerRe: Help with database Pin
Vasudevan Deepak Kumar25-Nov-07 22:04
Vasudevan Deepak Kumar25-Nov-07 22:04 
QuestionHow to retrieve a image from a database and display along with other components Pin
faesel25-Nov-07 2:43
faesel25-Nov-07 2:43 
AnswerRe: How to retrieve a image from a database and display along with other components Pin
Christian Graus25-Nov-07 8:35
protectorChristian Graus25-Nov-07 8:35 
GeneralRe: How to retrieve a image from a database and display along with other components [modified] Pin
faesel26-Nov-07 6:33
faesel26-Nov-07 6:33 
AnswerRe: How to retrieve a image from a database and display along with other components Pin
faesel28-Nov-07 5:00
faesel28-Nov-07 5:00 
Hi,

Ignore my previous post I have since discovered the problem, if anyone is interested in what i did i have shown my coding below:

web.config file:
<system.web>
<httpHandlers>
<add verb="*" path="http://localhost:1130/Game.*" type="WebApplication.ImageHandler, WebApplication"/>
</httpHandlers>
</system.web>

NOTE: before I had an incorrect path....very incorrect Smile | :)

Image tag:
<asp:Image ID="Image1" runat="server" ImageUrl="~/ImageHandler.ashx?id=1"/>

http handlers .ashx code:
public class ImageHandler : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
int _imageId;

if (context.Request["id"] != null) //Parameter being passed from the image tag
{
_imageId = int.Parse(context.Request["id"]);
}
else
{
throw new ArgumentException("No parameter specified");
}

Game game = new Game();
Byte[] image = game.RetrieveImageDB(_imageId);
context.Response.BinaryWrite(image);
}

public bool IsReusable
{
get
{
return false;
}
}
}


Hope this helps,
Faesel Saeed
QuestionSQL Server Connection pooling in classic ASP? Pin
joker79724-Nov-07 7:00
joker79724-Nov-07 7:00 
QuestionHelp me in this script Pin
Menhal24-Nov-07 2:03
Menhal24-Nov-07 2:03 
AnswerRe: Help me in this script Pin
Shog924-Nov-07 7:47
sitebuilderShog924-Nov-07 7:47 
GeneralRe: Help me in this script Pin
Menhal24-Nov-07 17:26
Menhal24-Nov-07 17:26 
QuestionJavascript popup - same window from two parent window... Pin
choorakkuttyil23-Nov-07 23:44
choorakkuttyil23-Nov-07 23:44 
AnswerRe: Javascript popup - same window from two parent window... Pin
Shog924-Nov-07 7:41
sitebuilderShog924-Nov-07 7:41 
Questions updating multiple rows Pin
neoghy23-Nov-07 19:37
neoghy23-Nov-07 19:37 
AnswerRe: s updating multiple rows Pin
Shog924-Nov-07 7:21
sitebuilderShog924-Nov-07 7:21 
QuestionInteroperatablity between managed and unmanaged code Pin
mastermind.aj23-Nov-07 1:59
mastermind.aj23-Nov-07 1:59 
AnswerRe: Interoperatablity between managed and unmanaged code Pin
Michael Sync23-Nov-07 17:58
Michael Sync23-Nov-07 17:58 
QuestionDreamweaver Problems Pin
EMMADO23-Nov-07 1:03
EMMADO23-Nov-07 1:03 
QuestionHow to disabled Div in JS. Pin
KambojR22-Nov-07 20:59
KambojR22-Nov-07 20:59 
AnswerRe: How to disabled Div in JS. Pin
Michael Sync22-Nov-07 22:13
Michael Sync22-Nov-07 22:13 
GeneralRe: How to disabled Div in JS. Pin
KambojR22-Nov-07 23:22
KambojR22-Nov-07 23:22 
GeneralRe: How to disabled Div in JS. Pin
Michael Sync23-Nov-07 1:23
Michael Sync23-Nov-07 1:23 
GeneralRe: How to disabled Div in JS. Pin
JyotiRawat25-Nov-07 20:15
JyotiRawat25-Nov-07 20:15 
GeneralRe: How to disabled Div in JS. Pin
Michael Sync25-Nov-07 20:31
Michael Sync25-Nov-07 20:31 

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.