Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 17th, 2004, 03:58 AM
Registered User
 
Join Date: Sep 2004
Posts: 9
Thanks: 0
Thanked 2 Times in 2 Posts
Default display .tiff in asp.net

Hi,I need to display some tiff images in asp.net pages but I dont know I can succeed in this?Can anyone help me
thnx
 
Old April 26th, 2007, 04:40 PM
Registered User
 
Join Date: Apr 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try this

 Dim _stream As System.IO.Stream = New System.IO.FileStream("c:/images/AB00B114.Tif", System.IO.FileMode.Open)
            Dim _bmp As New Bitmap(_stream)
            Context.Response.ContentType = "image/gif"
            _bmp.Save(Context.Response.OutputStream, ImageFormat.Gif)
            _bmp.Dispose()
            _stream.Close()

Being Optimisitc helps a lot
 
Old April 26th, 2007, 04:41 PM
Registered User
 
Join Date: Apr 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

 Dim _stream As System.IO.Stream = New System.IO.FileStream("c:/images/AB00B114.Tif", System.IO.FileMode.Open)
            Dim _bmp As New Bitmap(_stream)
            Context.Response.ContentType = "image/gif"
            _bmp.Save(Context.Response.OutputStream, ImageFormat.Gif)
            _bmp.Dispose()
            _stream.Close()

FROM-: RISHI BAJAJ

Being Optimisitc helps a lot
 
Old May 11th, 2007, 05:31 PM
Authorized User
 
Join Date: Apr 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Better convert the TIFF image to JPEG or PNG.
But we use BinaryImage from AspLib component library (http://asplib.net). The control converts the TIFF images on the fly






Similar Threads
Thread Thread Starter Forum Replies Last Post
display messagebox in ASP.Net with VB.Net suresh_accudocs ASP.NET 1.0 and 1.1 Basics 7 November 5th, 2014 06:31 PM
Display Message In ASP.NET mistry_bhavin General .NET 2 February 26th, 2005 04:50 AM
Cannot display Datagrid on ASP.Net smujib Classic ASP Databases 1 February 23rd, 2005 09:01 PM
display .tiff in asp.net eraldov ASP.NET 1.x and 2.0 Application Design 1 September 17th, 2004 09:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.