RE: Images not getting rendered when using httphandler



Hitesh,

Have a look at this article from aspalliance
http://aspalliance.com/articleViewer.aspx?aId=141

that example uses an aspx page to output the image.
once you have that working and you would like to optimise it then put the
code into http handler
This link should help with handler (custom) and image manipulation code
http://www.microsoft.com/belux/nl/msdn/community/columns/desmet/httphandler.mspx
I have used the code similar to the one in above link from ms but i just
created a generic handler .ashx rather than a custom handler.

HTH

Regards,

Hermit Dave
http://hdave.blogspot.com



"Hitesh" wrote:

> Hi,
>
> I am getting the response from another Website by using the HttpHandler in
> my current site. I am getting the page but all the images on that page are
> not appearing only placeholder are displayed.
>
> Can anybody know this issue and help me to resolve this.
>
> In past i received the response saying that i should download the image
> first and then parse the actual response and modify the src attribute of the
> img tag and then rendered the output on the browser. But i could not able to
> find a way to do this, if this approach is correct then if somebody can
> provide me a code snippet then it will be really helpful.
>
> Thanks
> Hitesh
.



Relevant Pages

  • Re: Intermittent work in UI thread
    ... then the issue here is that you would have a timer handler something like ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.vc.mfc)
  • RE: Images not getting rendered when using httphandler
    ... When i am getting the response from the web server where my actual ... pages exists in the Handler then first i have to ... and then i should write this parsed html response to the browser and now the ... suggestion on the above details that i have given then it will help me to ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: aspx to return a 404 with a friendly page inc/Session?
    ... Have u tried to implement the httphandler for this, where your session will ... D> error handler), I get an error. ... D> response code of 302. ... D> I've set up IIS to point to the aspx file, but that only works if the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Stallion breeding with "hand signals"
    ... Yeah, I saw that too. ... he just seems to have a low libido and need plenty of time to work himself up to the task. ... He's nice and gentle with the mare, but it wasn't because he was watching the handler, just taking his time because that's his innate nature. ... The response to the action of picking up something from the ground was a very strong conditioned reaction. ...
    (rec.equestrian)
  • Re: Button click event handler not called.
    ... The Click event is called in the MouseUp event. ... Some messages require a response, ... > the specified messages, and an "Abort" button, to allow the user to abort ... > socket, the click handler gets called, as normal. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)

Loading