473,406 Members | 2,343 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,406 software developers and data experts.

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 3429
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.comwrote in
message news:97**********************************@microsof t.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.comwrote in
message news:97**********************************@microsof t.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.comwrote :
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(Object sender, EventArgs e)
{
string imageLocation = Server.MapPath(Request.QueryString["image"]);
System.Drawing.Bitmap origBitmap = new
System.Drawing.Bitmap(imageLocation);
System.Drawing.Bitmap outputImage = new
System.Drawing.Bitmap(origBitmap);
System.Drawing.Imaging.ImageFormat outputFormat =
System.Drawing.Imaging.ImageFormat.Jpeg;
outputImage.Save(Response.OutputStream, outputFormat);
outputImage.Dispose();
origBitmap.Dispose();
}
</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
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....
4
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...
4
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...
5
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...
5
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
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...
1
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
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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
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...
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
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.