473,799 Members | 3,159 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Images TIFF on .aspx Web forms

Hi....

Please help me with this case. I need to show an image .TIFF in a .aspx web
page. The web site is developer on Visual Studio 2005. The image control no
support this image format, that control i can use to show this format???

Thanks.

Oct 1 '07 #1
3 3446
I believe it's not recognizing it because most browsers don't support it.
My recommendation would be to convert to jpg or png format

--

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup
"Guillermo Jimenez" <Gu************ **@discussions. microsoft.comwr ote in
message news:97******** *************** ***********@mic rosoft.com...
Hi....

Please help me with this case. I need to show an image .TIFF in a .aspx
web
page. The web site is developer on Visual Studio 2005. The image control
no
support this image format, that control i can use to show this format???

Thanks.

Oct 1 '07 #2

Ditto on the other post.

Here are some options as I see them:

1. Force your users to install some thirdparty tool. (Not a good option,
but an option).
2. Convert to gif or jpg. If you have a bitonal tiff, then use gif. If
you have alot/lotta colors, use jpg.
3. Buy a third party tool like:
http://www.atalasoft.com/ajaxviewer/

#2 is your cheapest/least client dependacies. However, you have to pay the
price each time you serve the file up.


"Guillermo Jimenez" <Gu************ **@discussions. microsoft.comwr ote in
message news:97******** *************** ***********@mic rosoft.com...
Hi....

Please help me with this case. I need to show an image .TIFF in a .aspx
web
page. The web site is developer on Visual Studio 2005. The image control
no
support this image format, that control i can use to show this format???

Thanks.

Oct 1 '07 #3
On Oct 1, 8:13 pm, Guillermo Jimenez
<GuillermoJime. ..@discussions. microsoft.comwr ote:
Hi....

Please help me with this case. I need to show an image .TIFF in a .aspx web
page. The web site is developer on Visual Studio 2005. The image control no
support this image format, that control i can use to show this format???

Thanks.
Here's a sample script that will work as showimage.aspx?
image=file.tiff , where file.tiff is a name of the file in the root

<%@ Page Language="C#" %>
<script runat="server">
void Page_Load(Objec t sender, EventArgs e)
{
string imageLocation = Server.MapPath( Request.QuerySt ring["image"]);
System.Drawing. Bitmap origBitmap = new
System.Drawing. Bitmap(imageLoc ation);
System.Drawing. Bitmap outputImage = new
System.Drawing. Bitmap(origBitm ap);
System.Drawing. Imaging.ImageFo rmat outputFormat =
System.Drawing. Imaging.ImageFo rmat.Jpeg;
outputImage.Sav e(Response.Outp utStream, outputFormat);
outputImage.Dis pose();
origBitmap.Disp ose();
}
</script>

as you can see it converts an image into Jpeg. Note, that the
System.Drawing. Bitmap object has a problem to load some TIF files.
Some work and some don't ("Parameter is not valid" error is thrown).
As I see it can be a problem of the format. For example, for files
with no compression, or in LZW it would work, and ZIP is not working.

Hope it helps

Oct 1 '07 #4

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

Similar topics

7
2346
by: Vinay | last post by:
Hi All: I have a small application that stores images either in the database or as files (depending on the user preference). I'm in the process of providing a web interface to this application. 1. If the images are stored in the DB then, every an image is requested, it will need to be pulled out and a temp file created and then displayed? What is the best way to do this?
4
8384
by: Kevin Myers | last post by:
Hello, Please forgive my reposting of this note with hopefully a more relevant subject line. On an Access 2000 form under Windows 2000 I would like to use a Kodak Image Edit Control to display the contents of a TIFF image file. According to the very limited documentation that I have been able to locate so far, all I should need to do is to drop the Image Edit Control onto the form in design mode, set the control's Image property to...
4
50933
by: Pushp | last post by:
Hello friends, Can any body tell me the sample code to convert a Tiff image to a Gif or Jpeg format. The Resolution of picture is a big concern keeping in mind. Hope to get the response from all of you. Regards,
5
6001
by: Shane Story | last post by:
I can seem to get the dimensions of a frame in a multiframe tiff. After selecting activeframe, the Width/Height is still really much larger than the page's actual dimensions. When I split a TIFF to several PNG files this causes a problem, becuase the resulting image is (the page to the far left and a lot of black space surrounding it and a filesize that is larger than needed. Any ideas?
5
15016
by: Sameer Gupta | last post by:
what are options for opening / handling tiff files in .Net framework ? which is the best library, namespace ? Please help Regards Sameer Gupta C# Designer & Developer Siemens UK
3
4194
by: =?Utf-8?B?R3VpbGxlcm1vIEppbWVuZXo=?= | last post by:
Hi.... Please help me with this case. I need to show an image .TIFF in a .aspx web page. The web site is developer on Visual Studio 2005. The image control no support this image format, that control i can use to show this format??? Thanks.
1
2646
by: a.mustaq | last post by:
Hi All, In my application, I have to display tiff images stored on server. Please help me in acheaving this. With Regards, Mustaq Ahmed.A
2
4976
by: mndprasad | last post by:
hi all i am doing a project in java where i need to convert 10 jpeg images into a single tiff image..conversion of single jpeg image to single tiff is happening but embedding all the 10 jpeg images into a single tiff is not happening..i hav tried out with single image conversion.. My code is *********************** import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO;
0
9538
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10470
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10214
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9067
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7561
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5583
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2935
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.