473,396 Members | 1,918 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

simple tiff viewer for .net 2003 web app

Hello

I'm looking for a simple TIFF viewer for a vb.net web application.
The TIFFs are single page and I just need to display them and that is it ...
nothing fancy at all.

Anyone have a suggestion as to a control I can use.

Thanks
Jon
Nov 18 '05 #1
2 1580
It should be pretty simple since GDI+ supports TIF files (although I'm nto
sure if it can do all the varying format types).

It should be as easy as reading a TIF file from a BMP file and writing it
back out using hte Response.OutputStream.

private void Page_Load(object sender, System.EventArgs e)

{

string YourImageTifFile = @"\temp\images\MyTif.Tif";

Bitmap bmp = new Bitmap(YourImageTifFile);

Response.ContentType = "image/jpeg";

bmp.Save(Response.OutputStream,System.Drawing.Imag ing.ImageFormat.Jpeg);

bmp.Dispose();

return;

}

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
http://www.west-wind.com/wwThreads/
----------------------------------
Making waves on the Web
"Jon Delano" <jd*****@hotmail.com> wrote in message
news:tUycd.407492$Fg5.236380@attbi_s53...
Hello

I'm looking for a simple TIFF viewer for a vb.net web application.
The TIFFs are single page and I just need to display them and that is it .... nothing fancy at all.

Anyone have a suggestion as to a control I can use.

Thanks
Jon

Nov 18 '05 #2
Rick

Thank you very much. This worked perfectly.

Jon

"Rick Strahl [MVP]" <ri********@hotmail.com> wrote in message
news:eA**************@TK2MSFTNGP09.phx.gbl...
It should be pretty simple since GDI+ supports TIF files (although I'm nto
sure if it can do all the varying format types).

It should be as easy as reading a TIF file from a BMP file and writing it
back out using hte Response.OutputStream.

private void Page_Load(object sender, System.EventArgs e)

{

string YourImageTifFile = @"\temp\images\MyTif.Tif";

Bitmap bmp = new Bitmap(YourImageTifFile);

Response.ContentType = "image/jpeg";

bmp.Save(Response.OutputStream,System.Drawing.Imag ing.ImageFormat.Jpeg);

bmp.Dispose();

return;

}

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
http://www.west-wind.com/wwThreads/
----------------------------------
Making waves on the Web
"Jon Delano" <jd*****@hotmail.com> wrote in message
news:tUycd.407492$Fg5.236380@attbi_s53...
Hello

I'm looking for a simple TIFF viewer for a vb.net web application.
The TIFFs are single page and I just need to display them and that is it

...
nothing fancy at all.

Anyone have a suggestion as to a control I can use.

Thanks
Jon


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Matan Holtzer | last post by:
Hello I'm looking for a replacement for the imgedit.ocx control. Up untill now, I was using this control in my application for displaying and annotating scanned tiff images (both single and...
17
by: PyPK | last post by:
Hi I am looking for a simple tiff Image reader/writer in python.Can anyone point me to the right one.
0
by: Phil | last post by:
Hi I have an issue when trying to stream blob image data from a SQL table to a .aspx page. the code I have works for GIF and JPEG but the images can be multiple pages and we would like them to open...
2
by: Al Reid | last post by:
Is it possible to display an image that is stored on the server as a TIFF image, on an ASP.Net page without the use of an add-in viewer? If so, could someone tell me how to do it? TIA -- Al...
2
by: johnb41 | last post by:
In my app, I need to open up a multipage tiff file, and also display it's thumbnail images IN HIGH QUALITY. (High Quality meaning anti-aliased, and looking good; not rough and pixely) The...
1
by: Bala | last post by:
Hi I try to download the tiff files from my server. Its get downloaded but I cannot open with windows fax viewer. its says "No preview available" thanks bala here is the code which I am...
6
by: qysbc | last post by:
I have a web page and there is a link to open a TIFF file. The way I do it is to have the server code open a binary stream, set the content type to "image/tiff" and call Response.BinaryWrite. On...
1
by: Prangya | last post by:
Hi all, I m using Windows XP pro OS and frontend is ASP.Net . I want to open a tif file within the .aspx web page.Now I am able to open .tif file in default Microsoft office document Imaging ...
5
by: sascha.folville | last post by:
Hi, I've some trouble reading the containing frames of a multiframe tiff. First frame is a 1700X2400 px CCITT4, second in JPG 820x1200, third is a CCITT again ... and so on. My function...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.