Response.contenttype = "image/gif"

Results 1 to 3 of 3

Thread: Response.contenttype = "image/gif"

  1. #1
    osr Guest

    Default Response.contenttype = "image/gif"

    Hi!<BR><BR>How can I return GIF document instead of HTML document I have been using Response.contenttype = "image/gif", but it doesnot return me iamge. My problem is when I run my script it should return GIF document instead of default HTML document. any help in this regard id highly appreciated.(My iamges are generated based on the input given.)<BR><BR>Thanks,<BR>osr.

  2. #2
    Join Date
    Dec 1969

    Default RE: Response.contenttype =

    When you return an image, that is *ALL* you can return from that ASP page!<BR><BR>You can NOT return any HTML, at all.<BR><BR>The way you make it work:<BR><BR>On the HTML/ASP page that wants the image, you do:<BR><BR>&#060;IMG Src="somePage.asp?somearg=whatever"&#062;<BR><BR>A nd now, when the "somePage.asp" returns the image, the browser knows to stick it into that spot in the document!<BR><BR>If you are doing all this and it isn&#039t working, then I don&#039t know what your problem is. Sorry.<BR><BR>

  3. #3
    Swami V Guest

    Default RE: Response.contenttype =

    Put this code as the first line in your asp...<BR>&#060;%<BR>Response.Buffer = true<BR>%&#062;<BR>Then you specify Response.content-type ...<BR>I hope this will work...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts