Click here to Skip to main content
13,143,774 members (30,840 online)
Rate this:
Please Sign up or sign in to vote.
See more:

i want to know , how to view TIFF images in my page using c#

i was tried with this code

Response.ContentType = "image/tif";

but this not display any image . its display open / save dialog
Posted 28-Mar-13 1:58am
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

I think, that the main problem is because browsers [^] don't support TIF images for inline viewing. I tried latest Chrome 26 and IE 10. It only works in Safari. To avoid this, use PNG instead or check the[^] project for TIF support.
Also proper content-type should be image/tiff (with two 'F's).
Sergey Alexandrovich Kryukov 28-Mar-13 10:35am
Correct, a 5.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Correct, adding images into the Response object will tell the browser to download them as a separate object and so you get the open save dialog.

All you need to do is add html img tags or image tags and set the src or imageurl to the url of the images.
Darsh_Basha 28-Mar-13 8:26am
plz tell me more
ryanb31 28-Mar-13 8:32am
Have you ever created a web page? Adding img tags is trivial and is html 101. Please see

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170915.1 | Last Updated 28 Mar 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100