JSP Tiff Image Display

Hi all,
I have a problem in displaying Tiff image in jsp page. I am using Internet Explorer 6.0 . I have installed Tiff Image plug-in from the site www.alternatiff.com. If the location of the image is given directly i can view the image. But through javascript function if I pass the location of the image to the embed tag src then it is not diplayed.
i have posted the code:
<html>
<head>
</head>
<SCRIPT LANGUAGE="JavaScript">
          function submitpage()
               alert(document.forms[0].image.value)
               document.forms[0].img.src=document.forms[0].image.value               
               alert (document.forms[0].img.src)
</script>                                        
<body >
<form >
<table border="0" cellpadding="0" cellspacing="0" align=center>
     <tr><td>Image Location : <input type="text" name="image" /></td></tr>
     <tr><td> <embed src=" " alt="Cheque Image will come here" width="600" height="300" name="img">      <tr><td>      
     <tr> <td colspan=4 align=center><input type=button name="click" value="Submit" onclick="submitpage()" /></center></td> </tr>
</table>
</form>
</body>
</html>
Is there anyother way to view the tiff image.
Thanks in advance for any suggestions.

Then I guess your Javascript writes crap.
Where's the Java part of your question?

Similar Messages

  • 16 Bit Tiff Images Display Bug?

    Question 1:
    Is there a problem with Aperture 2.0 displaying 100 + mb 16 bit tiff images generated by a film scanner (nikon coolscan 4000 ed)? I am having trouble with my library that I migrated from Aperture 1.5. All of my images were working fine in Aperture 1.5 (and previously in iPhoto as far back as 2003). In Aperture 2.0 I am getting scrambled images and some images that read unsupported file format. The problem is sporadic. It effects some images and not others. Sometime images display correctly and sometime they become scrambled and unsupported, and then back again.
    There is no trouble with the images themselves. I export them to CS3 with no distortion or trouble. The problem seems to be in Aperture 2.0.
    I have re-built the library, tried migrating images, changed the color profile.... I think I have exhausted every trick I can manage from a user vantage point. The images work fine when converted to 8 bit files. This is not the solution for me - I need to keep these images 16 bit.
    Question: Is this this just my version (I purchased downloaded upgrade), that is having trouble, or is this a wider problem that Apple aware of and is looking into?
    Please advise. I have 1000's of scanned pictures that I have been working with for years that were fine and now are not. I purchased a new Mac Pro 2.8 so as to work more productively with these large images - and now it seems that the very software I rely on has failed me.
    I have not been able to find any comments from Apple regarding this issue.

    I've had this problem with images saved as 8-bit scans.
    Are you using any compression in the TIFs? I scanned using Nikon Scan 4, cleaned up a bit in Photoshop 7, reduced the bit depth to 8-bit, and saved at TIFs with embedded colour profile using ZIP compression, Macintosh byte order.
    This used to work with Aperture 1.5.6, but with Aperture 2.0 I see a kind of offset pattern, so a vertical line looks like this:
    If export the master TIF, open it in Photoshop (where it looks normal) and save it with no compression Aperture displays it properly.
    (I'm still using Tiger, so I don't think this is an OS issue.)

  • Fixed:  TIFF image display / import problems

    Hello All,
    I posted this in the discussion threads where I had previously discussed it with other members. But, felt that it would be good to share with everyone who is importing their photo's into the new iPhoto 6.
    I, like many others, have been having a terrible time getting my iPhoto collection imported into the new iPhoto 6 program.
    I have tried both the upgrade method (on a backup copy of my original library), and a fresh import of all my files.
    Without fail, all of my TIFF images gave me trouble. Some looked like squiggly lines. Some looked like a diagonally distorted image (like you see on old Televisions trying to tune in difficult stations). And, some just plain refused to work.
    All of my problem images look fine in the thumbnail (the library view). But, you quickly discover the problem when viewing the full-size image in the "edit" mode.
    Some of my TIFF images are 30 megabytes in size, and many of them are smaller files of a more typical size. I found that the smaller files were just as unlikely to work as the larger ones.
    And, while converting to JPEG may be an option, I didn't want to lose the depth and detail that TIFF offers (especially on pictures of documents / writing). The original TIFF images will offer greater detail when blown-up than compressed JPG files.
    All of these images worked fine in iPhoto 5, and display perfectly fine in every other program. But, iPhoto 6 just refused to display them properly.
    Well, I think I found the fix.
    Today I downloaded the new iPhoto 6.01 update. But, that didn't fix the problem either. So much for Apple fixing it.
    Anyway, I have been experimenting, and finally found a difference between images that worked and those that didn't.
    The images that worked, have an ICC profile embedded in them from the device that created the image (in my case my scanner).
    So, I set out to find out if simply removing the ICC profile would fix the problem.
    And, through my experimenting, I found that if I opened the image in another program, and then exported it as either a TIFF (the same format) or a JPEG that the resulting image would open in iPhoto 6 just fine.
    Further examination demonstrated that the ICC information was removed from the exported file.
    As I understand it, ICC is basically an image color correction / calibration tag. It enables different devices to properly display and print the image with the proper colors.
    Basically, each device has a color profile (scanner, monitor, printer, camera, etc.). This is to make sure that when you see something on the screen that it looks the same as when you print it out. Likewise, you want the image on the screen to match what the scanner and digital camera saw.
    So, these are essentially conversion tables to make sure that each device properly displays or prints the image as the original source "saw" it.
    Anyway, not wanting to manually strip this information from each file, I looked on the Internet for an automated solution. And, fortunately I found one.
    http://www.colormanagement.com/technicalresources/files_targets_and_utilities/mac_os_xscripts/
    The file you are looking for is "Mac Os X ColorSync Toolbar Script: Remove ICC profile". Click on the title just mentioned to download the script.
    It is a Macintosh Script that you simply download to your desktop (or anywhere else you would prefer). It is in a Stuffit Archive, so you'll need Stuffit Expander to decompress it (basically the Mac equivalent of a ZIP file).
    Once decompressed, you should see a "script" icon that is labeled "Remove Profile".
    Simply "drag" your original files and drop them onto this icon / script. The script will then remove the embedded ICC information from the image file.
    Once you have removed the ICC information from your image's file, try importing it into iPhoto 6 again. Then, see if it works
    It is important that you perform this on a backup / duplicate copy of your original files. You don't want to damage your only copy if something goes wrong.
    Now, one further note: If you do this, you may see the image looks different. In my case, the image is truer to the way it really looked when I scanned it in. The paper texture looks right now.
    If you want to do this while keeping the image's appearance the same as it looks now, then here's another way:
    Open the file in Apple's "Preview" program. This is usually the default image view.
    Then, do a "Save As" or "Export" to create a new copy of the image. If you perform an Export, be sure to set the image quality high or you may inadvertently reduce your pictures detail (especially if you export to JPEG).
    This essentially does the same thing. But, it will take more work if you have multiple images.
    Using the previously mentioned script, you should be able to drag and drop multiple files in a group.
    Anyway, I hope this helps the rest of you out.
    Let me know if it fixes the problem for you as well.

    Hello All,
    I have an update:
    It is definitely not a user account issue. I just completed a fresh install of OS 10.3.9 on my Mac Mini.
    I performed a fresh install (on a freshly formatted hard drive partition), and made the installation as bare as could be for the sake of preventing potential problems.
    I installed OS 10.3.9, and all the standard items in the usual OS 10.3.9 installation. I specifically left-out all the foreign language stuff, all the online programs (for other ISP providers), and misc. garbage.
    I also left off all the iLife programs (every iLife program) that came with the restore disks. I even left-off the original QuickTime installation. My thought here was that I wanted to make sure that there were no problems introduced by upgrading the original iLife Applications to iLife '06.
    So, this way, all the iLife '06 programs are installed fresh with no upgrading being performed.
    So, I installed this bare OS 10.3.9 installation. Then, installed all the updates that were available. I repaired permissions before and after each update. And, installed all the updates from downloads from Apple's website (Not using Software Update).
    After verifying that Software Update could not find any additional updates available, I then installed iLife '06.
    This required first installing Quicktime 7.0.4 from the iLife '06 DVD.
    After installing QuickTime, I then proceeded to install the iLife '06 package (remember that this is a completely new iLife install - not an upgrade install since I avoided installing the older versions).
    Once iLife '06 was installed, I then installed the recent 6.0.1 updates for all the iLife Apps.
    Then, I launched the iPhoto program for the first time to see if it would properly import my TIFF images.
    Unfortunately, it still displays them as if they are scrambled (like a blocked television / cable channel).
    So, with that done, I can confirm that it is not a corrupt file or another program on my system causing the problem. It is definitely a problem with iPhoto 6 / 6.0.1 and OS 10.3.9.
    Just thought I would post the update here for others to add to their knowledge-base. Maybe if we rule out potential problems we'll be able to find the actual solution.
    Again, this same set of images imports just fine into iPhoto 5 on OS 10.3.9 and 10.4.4. And, it also imports just fine into iPhoto 6.0.1 in OS 10.4.5. So, it is a problem apparently specific to OS versions 10.4.4 and older using iPhoto 6 or 6.0.1.
    As mentioned previously, these TIFF images can be made to import fine if I remove the ICC information from the image. So, that may provide some clue as to where the flaw is in the iPhoto 6 / 6.0.1 program.

  • MBA old gen. and Snow Leopard - TIFF images seen as blank in some web pages

    After I upgraded to Snow Leopard, I see blank the TIFF images displayed in some web sites, like for example any patent image in the www.uspto.gov web site.
    This happens on both Safari and Firefox. They both use the QuickTime plugin (I have version 7.6.3).
    However, if I drag and drop the TIFF image and save it in the local hard drive, local applications like Preview display the page correctly.
    It seems to be an issue with QuickTime and possibly the MacBook model (I have a first generation MacBook Air, with the GMA X3100 Intel graphic card).
    Has anybody experienced this bug?

    Any patent image in the www.upsto.gov web site. For example, this link goes to the first page of the U.S. Patent 161,739 Improvement in Transmitters and Receivers for Electric Telegraphs by A.G. Bell:
    http://patimg1.uspto.gov/.piw?Docid=00161739&homeurl=http%3A%2F%2Fpatft.uspto.go v%2Fnetacgi%2Fnph-Parser%3FSect1%3DPTO1%2526Sect2%3DHITOFF%2526d%3DPALL%2526p%3D 1%2526u%3D%25252Fnetahtml%25252FPTO%25252Fsrchnum.htm%2526r%3D1%2526f%3DG%2526l% 3D50%2526s1%3D0161739.PN.%2526OS%3DPN%2F0161739%2526RS%3DPN%2F0161739&PageNum=&R type=&SectionNum=&idkey=NONE&Input=Viewfirstpage
    All I see a blank page.

  • TIFF images are shown as blank when embedded in some web pages

    After I upgraded to Snow Leopard, I see blank the TIFF images displayed in some web sites, like for example any patent image in the www.uspto.gov web site.
    This happens on both Safari and Firefox. They both use the QuickTime plugin (I have version 7.6.3).
    However, if I drag and drop the TIFF image and save it in the local hard drive, local applications like Preview display the page correctly.
    It seems to be an issue with QuickTime and possibly the MacBook model (I have a first generation MacBook Air, with the GMA X3100 Intel graphic card).
    Has anybody experienced this bug?

    Any patent image in the www.upsto.gov web site. For example, this link goes to the first page of the U.S. Patent 161,739 Improvement in Transmitters and Receivers for Electric Telegraphs by A.G. Bell:
    http://patimg1.uspto.gov/.piw?Docid=00161739&homeurl=http%3A%2F%2Fpatft.uspto.go v%2Fnetacgi%2Fnph-Parser%3FSect1%3DPTO1%2526Sect2%3DHITOFF%2526d%3DPALL%2526p%3D 1%2526u%3D%25252Fnetahtml%25252FPTO%25252Fsrchnum.htm%2526r%3D1%2526f%3DG%2526l% 3D50%2526s1%3D0161739.PN.%2526OS%3DPN%2F0161739%2526RS%3DPN%2F0161739&PageNum=&R type=&SectionNum=&idkey=NONE&Input=Viewfirstpage
    All I see a blank page.

  • Display *.bmp images or *.tiff images

    Hi All,
    Need help in displaying *.bmp / *.tiff images at runtime.
    I am working in an application where the user may upload
    images (jsp) in any format (jpg/gif/png/bmp/tif) and I need to
    display these images from an user interface built in Flex with zoom
    effects. I am able to display jpg/gif/png using the standard Image
    control with zoom but unable to display the bmp and tiff files.
    Is there any way to display tiff and bmp files?
    Please help.
    Regards,
    Paromita

    All is well now. I used the Revo Uninstaller (www.revouninstaller.com) which scoured the registry and deleted dozens of left-behind pieces, then I reinstalled off the disk using all the default settings.

  • Trying to display multipage tiff image getting error

    Hi
    I am trying to read multipage tiff image but dont know how
    I tried to display single page tiff getting error
    my code is
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Drawing;
    using System.Drawing.Imaging;
    namespace Documentviewer1
        public partial class _Default : System.Web.UI.Page
            //string filepath = "";
            protected void Page_Load(object sender, EventArgs e)
                //// filepath = "image\045237302.tif";
                string appath = Server.MapPath("/image") + @"\";
                string imagename = Request.QueryString["ImageFileName"];
                string filename = appath + imagename;
                Response.ContentType = "image/tiff";
                new Bitmap(filename).Save(Response.OutputStream, ImageFormat.Tiff);
                ////System.Drawing.Image TheImg = new App.Files.TIF(Request.QueryString["FilePath"]).GetTiffImageThumb(System.Convert.ToInt16(Request.QueryString["Pg"]), System.Convert.ToInt16(Request.QueryString["Height"]),
    System.Convert.ToInt16(Request.QueryString["Width"]));//getting error in thisline Parameter not valid
    my aspx page is has
    <%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
        CodeBehind="Default.aspx.cs" Inherits="Documentviewer1._Default" %>
    <asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    </asp:Content>
    <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
        <h2>
          <img alt="" src ="image/045237302.tif" width="200" height="200"/>
        </h2>
        <p>
            To learn more about ASP.NET visit <a href="http://www.asp.net" title="ASP.NET Website">www.asp.net</a>.
        </p>
        <p>
            You can also find <a href="http://go.microsoft.com/fwlink/?LinkID=152368&amp;clcid=0x409"
                title="MSDN ASP.NET Docs">documentation on ASP.NET at MSDN</a>.
        </p>
    </asp:Content>
    getting error as Parameter not valid.
    Can anybody help me to display the image in the browser.
    Thanks
    Mary Abraham
    Mary Sunish

    Hi MaryAbraham,
    Since the issue regards ASP.NET and website deployment. I suggestion you post the question in the ASP.NET forums at
    http://forums.asp.net/. It is appropriate and more experts will assist you.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Displaying TIFF images in Oracle Forms 6i

    Hello, friends!
    I am working in Oracle Forms 6.0.8 (that ancient tool) and encounter a problem with displaying TIFF images.
    I have a number of scanned images and some of them are displayed and some are not. I've tried both extracting them from the database or from the file system (using READ_IMAGE_FILE). Sometimes I am getting just blank field in my image item and sometimes (after using READ_IMAGE_FILE) I get the error FRM-47100 (cannot read image file). Of course I've checked that all the files are displayed using standard tools for displaying TIFFs.
    Basically the question is what kind of TIFF is considered valid and readable by Oracle Forms.
    Analyzing TIFF tags actually gave me nothing: I have a pair of files with tags different only in image width/length and a number of rows/strip (but even those values are close), and one of the file is displayed correctly while the other is not. The thing I noticed is that invalid files are using compression type of CCITT Group 4.
    Possibly Oracle Forms follows TIFF specification only to certain extent and does not support all the extensions, while sometimes the problems are not visible to user.
    As a result of my work I need some automatic tool that converts undisplayable TIFF files to displayable ones but firstly I am to determine where the problem is. And it would be very good to have a prooflink that approves my decision.
    Looking forward to any help! Thanks in advance.

    Thanks to everybody, but I'm afraid my files don't contain any EXIF tags (although TIFF seems to support them). The file doesn't contain any tags with IDs greater than 0x7FFF but only core TIFF tags (with IDs of lower numbers). Moreover I have a file with exactly the same set of tags (but the values are a bit different) which is displayed properly.
    I've shared the issued file (nondisplayable) on the following link: [https://rapidshare.com/files/3137807470/2.tif]
    If anyone could tell me why isn't it displayed in Forms I would be very grateful.

  • TIFF images are displayed as thumbnails but will not open for editing

    I have noticed a problem with my iPhoto 7.xx
    iPhoto displays the thumbnail of TIFF files but when it is selected (for editing as an example), iPhoto displays a grey circle with a black question mark. This happens with TIFF images from any source (multiple camera, scanner, etc). The TIFF files are NOT in raw format.

    Open the file with Preview and do a Save As. Either change the format or keep the tiff. That should fix the files so they can be viewed normally in iPhoto. If the problem is due to an alpha channel in the file this will fix the problem.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Tiff images not display properly

    After installing iPhoto 6, none of the 1600 files in .tiff format imported via a Lexmark scanner are showing up correctly. (They worked perfectly well in iPhoto 5)
    I get a blurred scribbled squashed image a little like a TV channel that hasn't been set correctly.
    If I go back and click on the files in the Finder, they open beautifully in Preview.
    This lead me to believe there was an issue with the tiff-format and I promptly converted a copy of the files to jpegs.
    Unfortunately this left me with a new problem as three white lines now appear thru all the pictures in jpeg format.
    Luckily I never deleted or moved the .tiff files, so I am still hoping to use those.
    Will there be an Apple update which fixes this or will I have to re-scan and date/title- another (sigh) 1600 pictures? (please, someone tell me no)
    Best wishes,
    N

    I think I found the fix.
    As I mentioned in my previous post, I have also been having trouble with TIFF images and iPhoto 6.
    Today I downloaded the new iPhoto 6.01 update. But, that didn't fix the problem either. So much for Apple fixing it.
    Anyway, I have been experimenting, and finally found a difference between images that worked and those that didn't.
    The images that worked, have an ICC profile embedded in them from the device that created the image (in my case my scanner).
    So, I set out to find out if simply removing the ICC profile would fix the problem.
    And, through my experimenting, I found that if I opened the image in another program, and then exported it as either a TIFF (the same format) or a JPEG that the resulting image would open in iPhoto 6 just fine.
    Further examination demonstrated that the ICC information was removed from the exported file.
    As I understand it, ICC is basically an image color correction / calibration tag. It enables different devices to properly display and print the image with the proper colors.
    Basically, each device has a color profile (scanner, monitor, printer, camera, etc.). This is to make sure that when you see something on the screen that it looks the same as when you print it out. Likewise, you want the image on the screen to match what the scanner and digital camera saw.
    So, these are essentially conversion tables to make sure that each device properly displays or prints the image as the original source "saw" it.
    Anyway, not wanting to manually strip this information from each file, I looked on the Internet for an automated solution. And, fortunately I found one.
    http://www.colormanagement.com/technicalresources/files_targets_and_utilities/mac_os_xscripts/
    The file you are looking for is "Mac Os X ColorSync Toolbar Script: Remove ICC profile". Click on the title just mentioned to download the script.
    It is a Macintosh Script that you simply download to your desktop (or anywhere else you would prefer). It is in a Stuffit Archive, so you'll need Stuffit Expander to decompress it (basically the Mac equivalent of a ZIP file).
    Once decompressed, you should see a "script" icon that is labeled "Remove Profile".
    Simply "drag" your original files and drop them onto this icon / script. The script will then remove the embedded ICC information from the image file.
    Once you have removed the ICC information from your image's file, try importing it into iPhoto 6 again. Then, see if it works
    It is important that you perform this on a backup / duplicate copy of your original files. You don't want to damage your only copy if something goes wrong.
    Now, one further note: If you do this, you may see the image looks different. In my case, the image is truer to the way it really looked when I scanned it in. The paper texture looks right now.
    If you want to do this while keeping the image's appearance the same as it looks now, then here's another way:
    Open the file in Apple's "Preview" program. This is usually the default image view.
    Then, do a "Save As" or "Export" to create a new copy of the image. If you perform an Export, be sure to set the image quality high or you may inadvertently reduce your pictures detail (especially if you export to JPEG).
    This essentially does the same thing. But, it will take more work if you have multiple images.
    Using the previously mentioned script, you should be able to drag and drop multiple files in a group.
    Anyway, I hope this helps the rest of you out.
    Let me know if it fixes the problem for you as well.

  • Displaying multi page tiff images

    Hi there
    I need to display a multipage tiff image, such that I can scroll through the different pages n the tiff file. I am new to ni vision and hence your inputs would be very helpful.

    Take a look at this thread.  You'll need to download the libtiff DLL here. 
    I managed to get it working in about 5 minutes, and could load a
    multi-page tiff into an array, and then split it into multiple Images.  The code is not the nicest, but it'll do the basics.  Alternatively you could try getting the .NET version of libtiff and calling it directly.
    Cheers ~ Greg
    Message Edited by GregS on 10-08-2009 03:36 PM

  • Displaying a tiff image in a browser.

    Hi I need to display a tiff image in the browser which does not have a tiff plugin. I guess I have to convert the tiff to jpeg on the fly and write it in the output stream. Has anyone worked on this or knows any other way. Please not I dont want to create an intermediate jpeg file.

    Thanks for your help. I am having one problem though. The tiff file is not being read. The ImageIO.read(file); is returning null. I guess I am using the wrong ImageIO class.( javax.imageio.ImageIO;). I am pasting the code below. See if you can find out the bug.
    package tiffToJpg;
    import java.awt.image.BufferedImage;
    import java.io.ByteArrayOutputStream;
    import java.io.File;
    import java.io.IOException;
    import javax.imageio.ImageIO;
    import javax.servlet.GenericServlet;
    import javax.servlet.ServletException;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import com.sun.image.codec.jpeg.JPEGCodec;
    import com.sun.image.codec.jpeg.JPEGImageEncoder;
    * @author Deepak_Mulchandani
    * TODO To change the template for this generated type comment go to
    * Window - Preferences - Java - Code Style - Code Templates
    public class TiffToJpg extends GenericServlet
         public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException
              File file=new File("Demo1.jpg");
         ServletOutputStream servletOuputStream=response.getOutputStream();
                        BufferedImage image = ImageIO.read(file);
                        ByteArrayOutputStream baos = new ByteArrayOutputStream();
              JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(baos);
                        encoder.encode(image);
                   servletOuputStream.write(baos.toByteArray());
    }

  • Displaying Tiff Image on browser

    Hi friends ,
    I want to display tiff image on browser . For that i have written one servlet witch will desplay tiff image on browser
    Here i am sending my code snippets for servlet.
    Here file is source file which i want to display.
    FileSeekableStream ss = new FileSeekableStream(file);
              ImageDecoder tiffDecoder= ImageCodec.createImageDecoder("tiff", ss, null);;
              p = tiffDecoder.getNumPages();
              for(int x=0;x<p;x++){
              RenderedImage tiffPage = tiffDecoder.decodeAsRenderedImage(x);
              ByteArrayOutputStream stream = new ByteArrayOutputStream();
         TIFFEncodeParam tiffOptions = new TIFFEncodeParam();
         // You may want to set compression or tile attributes on the     EncodeParam here
         RenderedOp l_return = JAI.create("encode", tiffPage, stream,"TIFF", tiffOptions);
         bt = stream.toByteArray();
    then writing this byte array(bt)
    OutputStream out;
    out.write(bt);
    and responce .setContentType("image/tiff");
    i also want to know whether mime type image/tiff is supported or not in servlet.
    When i run servlet i am getting File Downloading dialog box.
    also when i download image file it's size is very large than original.
    Plz correct my code.It's verry urgent.
    Thanks in Advance

    hi, could you post the solution?
    I'm looking forward to know the solution.
    Thanks

  • How to display TIFF images?

    Hello all.
    My web application needs tiff images viewer with a very primitive functionality like zoom. I'm a new in working with graphics and it seems like java.awt.image package doesn't support TIFF images format. From searching this forum I understood there are 3 party products like JAI to work with those images.
    Can somebody send me an example of how to read and display those images with zooming option; and/or how to convert from tiff to GIF/JPG formats (which also can be a solution for me).
    If somebody has a ready applet that implements the required functionality and can share it with me, I would appreciate it very much.
    Email: [email protected]
    Thanks in advance.

    I am also looking for Tiff Image zooming functionality. Please through your ideas or suggestions. I will appreciate your advises. If anyone has developed API, Please let me know, I am ready to look in to it. I will appreciate your quick response.

  • Displaying the multi-tiff image in the browser

    Hi,
    I have been trying it...
    Please help me to get rid of this problem.. If this completes then almost my project is finished........ So, please guide me it's urgent.

    sagar_22 wrote:
    Hi,
    I have been trying it...What have you tried?
    So, please guide me it's urgent.It's not. I've no such requirement.
    Anyway, you need a browser plugin, as browsers out of the box can't display TIFF images (or most can't, there may be some that can but I've never seen them).

Maybe you are looking for