Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / JScript / August 2005

Tip: Looking for answers? Try searching our database.

Regarding to view tif image in Asp.Net application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arun - 02 Aug 2005 14:05 GMT
Hi,

 Give suggestion to view a tif image file("example.tif") in Asp.Net
application using C#.Net.
without using thirdparty controls.

Regards,
Arun.
[MSFT] - 04 Aug 2005 10:23 GMT
Hello Arun,

By default, a tif image cannot be viewed in IE. Therefore, you had better
convert the tif image to other format like jpg first. I am afraid there is
no a way to show tif in ASP.NET directly.

Luke
Serge Baltic - 04 Aug 2005 13:53 GMT
[> By default, a tif image cannot be viewed in IE. Therefore, you had
[> better convert the tif image to other format like jpg first.

TIFF is lossless in most cases. So PNG seems to be a better thing as it's
lossless as well, while auto-converting to JPEG may affect the image quality.

[> I am
[> afraid there is no a way to show tif in ASP.NET directly.

Seems to me that .NET has built-in support for TIFF (as there's such thing
as ImageFormat.Tiff), so you can convert it even on-the-fly using ASPX by
loading the TIFF into a Bitmap object and then converting it into a stream
of PNG format, and setting all the response headers to a format appropriate,
of course. But that's a significant load on the server, so I wouldn't do
it on a regular basis.

(H) Serge
Bruce Barker - 04 Aug 2005 20:51 GMT
IE doesn't support png, so you should pick jpeg or gif.

-- bruce (sqlwork.com)

>[> By default, a tif image cannot be viewed in IE. Therefore, you had
> [> better convert the tif image to other format like jpg first.
[quoted text clipped - 13 lines]
>
> (H) Serge
Serge Baltic - 05 Aug 2005 12:43 GMT
Hello,

bb> IE doesn't support png, so you should pick jpeg or gif.

IE does support PNG.

/* but not entirely, there are some issues around the transparency, it needs
special workarounds to work as expected */

(H) Serg

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.