Viewing Tif images in a browser

Hello all, please keep in mind that I know nothing about BEA so try to dumb down any of responses. :) Thanks. Here's the issue.
My company has outsourced a project to a company and there's currently a problem with the program of viewing tif images in a browser through BEA that are stored on a seperate file server. However, they are all coming up garbled. What can I do to fix it? There's nothing wrong with the tif images because if I go directly to the file server, browse to the tif, right click it and choose to open with IE it comes up fine. My boss has asked me, of all people, to find the soution. Please help.
Matt

My guess is that the mime-type of the file request is coming back incorrect,
which means that the browser doesn't know how to process the bits it gets
back from WLS.
You can compile and run this java class from the command line, passing in
the same URL as you are in the browser and this will display all the headers
you get back from WLS.
You need to do two things. (possibly)
1) if the file is being served by the web-server/web-app then you need to
add a mime-type entry in the web.xml for the web-app in question
<mime-mapping>
<extension>.tiff</extension>
<mime-type>app/tiff</mime-type>
</mime-mapping>
I dont kow the actual mime-type for tiff, but you can look it up on google.
2) if the file is being supplied by streaming it from disk by a servlet,
then you need to make sure that servlet sets the appropriate mime-type.
Cheers
mbg
"Matt" <[email protected]> wrote in message
news:3fbce312$[email protected]..
Hello all, please keep in mind that I know nothing about BEA so try todumb down any of responses. :) Thanks. Here's the issue.
>
My company has outsourced a project to a company and there's currently aproblem with the program of viewing tif images in a browser through BEA that
are stored on a seperate file server. However, they are all coming up
garbled. What can I do to fix it? There's nothing wrong with the tif images
because if I go directly to the file server, browse to the tif, right click
it and choose to open with IE it comes up fine. My boss has asked me, of all
people, to find the soution. Please help.
>
Matt[GetHeaders.java]

Similar Messages

  • Read Tif Image from Database Display in Windows Fax Viewer

    Code for reading a BLOB from Oracle which is a TIF image and displaying it in Windows Picture and Fax Viewer. Gives the ability to display with perfect resolution, Zoom In & Out, Rotate and Print.
    I m storing the image on my C drive, you can store where ever you want.
    package com.test.examples;
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import oracle.sql.BLOB;
    public class Test {
         * Main method for calling the View Tif Image method.
         * @param args
         public static void main(String[] args) {
              String id = "123";
              Test test = new Test();
              test.viewTifImage(id);
         * Method for viewing TIF Image
         public void viewTifImage(final String id) {
              BLOB blob = null;
              FileOutputStream outStream = null;
              InputStream inStream = null;
              final String filename = "C:\\Images\\image.tif";
              if (Helper.stringNotNullAndEmpty(id)) {
                   try {
                        imageDAO = new ImageDAO();
                        blob = imageDAO.getImageBLOB(id);
                        File blobFile = new File(filename);
                        outStream = new FileOutputStream(blobFile);
                        inStream = blob.getBinaryStream();
                        int length = -1;
                        int size = new Long(blob.length()).intValue();
                        byte[] buffer = new byte[size];
                        while ((length = inStream.read(buffer)) != -1) {
                             outStream.write(buffer, 0, length);
                             outStream.flush();
                        showTiff(filename);
                        inStream.close();
                        outStream.close();
                   } catch (IOException ioe) {
                        System.out.println("Exception in IO block.");
                        ioe.printStackTrace();
                        try {
                             inStream.close();
                             outStream.close();
                        } catch (IOException ioe1) {
                             ioe1.printStackTrace();
                   }catch (DAOException daoe) {
                        System.out.println("Exception while getting the BLOB");
                        daoe.printStackTrace();
                   } catch (Exception ex) {
                        System.out.println("ERROR(djv_exportBlob) Unable to export:"
                                  + filename);
                        ex.printStackTrace();
                   } finally {
                        try {
                             inStream.close();
                             outStream.close();
                        } catch (IOException e) {
                             System.out.println("Exception in IO block.");
                             e.printStackTrace();
         public static boolean showTiff(String fileName) throws IOException {
              String progDir = System.getenv().get("SystemRoot");
              System.out.println("SYSTEM ROOT DIRECTORY" + progDir);
              // turn the backslash around to a forward slash
              int x = progDir.indexOf('\\');
              String front = progDir.substring(0, x);
              String back = progDir.substring(x + 1);
              progDir = front + "/" + back;
              String osCmd = progDir + "/system32/rundll32.exe " + progDir
                        + "/system32/shimgvw.dll,ImageView_Fullscreen " + fileName;
              try {
                   System.out.println("command is " + osCmd);
                   Runtime rt = Runtime.getRuntime();
                   Process ps = rt.exec(osCmd);
              } catch (IOException ie) {
                   System.out.println("error running fax viewer");
                   return false;
              return true;
    Let me know if you find some thing wrong in here.
    Thanks
    raffu

    REad all the file paths from DB in e.g. List<String>. Define javax.swing.Timer.
    How to use timer read here
    http://leepoint.net/notes-java/other/10time/20timer.html
    or
    http://docs.oracle.com/javase/tutorial/uiswing/misc/timer.html
    When the timer's actionPerformed happens use next index in the array to get next filePath and show your image. When end of list is achieved just stop the timer (or startd from the beginning of the list again).

  • E72 Blurry images in internet browser

    Ive searched all over the place and cant get at least a relating topic, off google searches or here.
    I just got the phone and what Ive noticed whenever I view still images in internet browser on my E72 they all appear blurry, like very bad quality, yet other images like the letters on Google Website are in high quality.
    Why is that?
    Thank you for your help.

    Esproc wrote:
    when I save it to the phones memory its only 12 kb in size and even in the gallery appears blurry.
    Apparently you did not save the image itself but a thumbnail preview version.
    Try to enter the exact URL address to the image in the phone using "open > new".
    (e.g. http://www.top-things-to-do.com/europe/eiffel-tower-paris-france.jpg)
    E72-1, product code 0586718, firmware 022.007

  • Tif image

    i want to display a tif image in the browser ... could somebody suggest how to go about it.... any hints etc.. are invited

    try http://www.google.de/search?q=tiff+java&hl=de&meta=

  • Dragging a large still image from the browser into the viewer crashes FCP

    Okay, I've not seen this problem until just a couple days ago but was wondering if it was just me or if everyone has this problem? I've found a work-around, but let me explain the problem first.
    I'm creating a growing up photo montage. I scanned all of the pictures myself at 300 dpi (as I've always done in the past) and saved them as TIF files. Some pictures as relatively small, i.e. 3.5 mb is size and do just fine, but it appears anytime I drop a picture into the viewer in preparation for the the timeline, it will crash FCP if the image file is any larger than about 5 or 5.5 MB. Now I know there is a limit on the resolution of a still and it shouldn't be any larger than 4000 pixels in either direction, but that is not my problem, the problem appears to occur with large files. I've used large still files before in past projects without any problem, so this is why I'm stumped. I've went as far as trashing my preferences, but that didn't change anything. I've even tested a still image from a past project that was something around 9 MB (or was it 19 mb?) in any case, it also crashed FCP but... I've used that picture before in past projects without any problem. I even created a new test project just in case my project file itself had a problem.
    My work-around is to simply drop the still image from the browser directly into the timeline, thus bypassing the viewer. This works every time without a hitch. I can even double-click on the still now setting in the timeline to load it into the viewer so I can add effects or keyframes or whatever without any problems (thank goodness). So, has anyone else experienced this problem or is it just me?

    Is this image saved in a colorspace mode that is anything other than RGB?
    CMYK & Grayscale images will cause problems.
    Some light reading regarding your choice of 300 dpi: http://www.scantips.com/no72dpi.html
    Unless you plan on panning and zooming your images, the best procedure is to use one of the video preset templates in Photoshop and paste your content into it. Scale and position using the Transform controls. For best results save as a TIFF without compression. Don't forget, always in RGB colorspace.

  • Firefox 4.0 is my default browser, and I am receiving a script error message when I try to view online images in Family Tree Maker 2011, a genealogy program. Have not had problems until Firefox 4.0. Can't seem to find a setting in Firefox to fix this.

    Error is as follows: Line: 63 Char: 4344 Error: Unable to get value of the property 'offsetHeight': object is null or undefined Code: 0 URL: http://yui.yahooapis.com/combo?2.8.0/build/yuiloader-dom- event/yuiloader-dom-event.js&2.8.0/build/dragdrop/dragdrop- min.js&2.8.0/build/stylesheet/stylesheet- Do you want to continue running scripts on this page? Y/N buttons."

    I see. Well, I just tried to make IE my default browser, but it did not solve the problem. I receive the same script error when I view the image. (I may not have explained this thoroughly enough at first - I do get to view the image after answering the error message, but the print button embedded in the window doesn't work. Before, I never had a problem with viewing or printing.)
    I imagine that at this point I will either need to communicate this to the IE people, or possibly revert to an older version of IE.

  • Can't view shared images via browser

    I use an old version of Skype, and I do not want to update. Whenever somebody sends an image via Skype, I see this message:
      <user> sent a photo.
      This device doesn't support Skype's new photo sharing features yet, but you can still view it in your browser here:
      https://api.asm.skype.com/s/i?[...]
    When I go to the link, it asks me to log into Skype, when I login, I see a page saying "Sorry, we were unable to open this photo. Try signing into Skype again.". No matter how many times I log in again, it still shows this message.
    Please help.
    Thank you.

    Mateon1 wrote:
    ruwim wrote:
    Images sent from the latest Skype versions on Windows, Mac or smartphones, are transferred now using the new Cloud-based mode. This means that they are not send directly to the recipient, but saved on a Cloud server.
    If the recipient is also using one of the latest Skype versions (on Windows it must be 6.21 or later), a preview of this image will be displayed in the chat window.
    On older Skype versions, only a link (similar to the one as you are seeing) to this image saved on the Cloud server is displayed.
    Theoretically, clicking on this link and signing in with your Skype account should display this image in your browser.
    If this was not the case, then the image might have been corrupted or there is an issue with your browser. What browser have you used to open this link?
    I use Google Chrome, the latest beta version (40.0.2214.85 beta-m). I find this unlikely that this particular image is corrupted, because I can view it with Skype on my phone, and this issue happens with all images shared via Skype, as far as I can tell.
    I have not tried to open the image links in Chrome, but it works with both Firefox and Internet Explorer.
    Make sure that you have the latest IE version installed on your computer and try to open this link in IE.

  • Images rotated in Browser do not appear rotated in Viewer

    I have the following problem in Aperture 2.1. I rotate images in the Browser and they appear to rotate just fine, but when loaded into the Viewer the images do not appear rotated. When exported by dragging from the Viewer to the Desktop (or other folder location) the images are not rotated, but when exported via the File>Export>Version command they are rotated.
    What gives? Why do the images not appear properly rotated in the Viewer?
    System info:
    Macbook Pro Core Duo 2.16 GHz
    2 GB RAM
    Mac OS X 10.5.3

    Solved my own problem. Nuked the Aperture preferences and everything seems to be working now.

  • Showing .tif images on browser

    Hi
    Currently I am doing one module where in I have to show the tif images (.tif extension) on the browser through servlet. I was wondering if there are any Java API's which I can use to show them. I am using JSP on the front end.
    Thanx very much!
    -Asheesh

    Well we need to store them as tif only and on request from net display them. We can store them temp on server as gif / jpg and clean them on a nightly basis but the the aim is to do the coversion tif to gif / jpg format on the fly (request) and not covert all into gif / jpg and then display.
    Thanx!
    -Asheesh

  • Orion and TIF Images

    Hi all,
    I am running orion (oc4j) with SSL
    I want to display image files to the browser without having to go through IIS. Does anyone know of any good TIF Image Servlets that will let me display images without having to start IIS?
    Or - if I run SSL on orion does it apply to my IIS?
    Thanks

    I installed Alternatiff in IE 8 but this did not work.Sorry, I don't understand, are you able to view TIFFs in the browser, or not? If not, they won't be viewable in the Document Explorer either. If you can view TIFFs in the browser, but the Document Explorer still shows nothing (I see no reason why) then I'm at my wits' end.
    Alternatively, you could use a different task flow to display the image (which works with web-viewable conversions rather than native files). From what I understood you intend to use the Document Explorer to navigate in the content repository, and I'm not aware of any task flow that would provide both functions - which leads to the conclusion that you might want to write one of your own.

  • Can't see images in any browser

    I cannot see any image in any browser if I use a testing
    server. I know the server is configured correctly. This site has
    been working fine for the last two months, and now since I tried to
    install net web developer express edition 5, the site has been
    trashed. I was using asp.net, then went to php ( on IIS),
    coldfusion, and now asp. I tried uninstalling and reinstalling
    dreamweaver. I ried installin gother browsers. I've tried
    everything. It's not in the preferences, I don't know where it is.
    But I can see them fine, if I remove the testing server, and just
    view the pages locally in the browser.
    Can someone please tell me what could be causing this. I've
    been working on it none stop for three days, and I'm getting very
    frustrated. Last night I wanted to throw this computer across the
    room. I have to get this finished. Thanks.
    Jackie

    > But I can see them fine, if I remove the
    > testing server, and just view the pages locally in the
    browser.
    broken mouse- sorry for double post.
    guess- the paths to the images are site root relative (start
    with a leading
    /slash) and the site's local address is to a subfolder (like
    http://localhost/thissite/ )
    if that's it-
    fix one- convert all the paths to document relative.
    (the pulldown at the bottom of the "Browse to File" dialog
    box in dw)
    also- see the relativity extension here:
    http://www.microwaved.plus.com/dw/
    fix method two-
    google on "virtual host" for your type of local server. Then
    you could set
    up "fake" local domain name for this site- and use
    http://thissite.local and the site
    root relative paths would work.

  • Crystal Reports Viewer Toolbar Images missing

    I have Crystal Reports XI R2 installed on a windows server 2008 R2 Enterprise server and when a when I browse to my asp.net page withe the crystal reports viewer I get the red x's for the toolbar images.  The viewer and web.config entries all reference the 11.5.3700.0.  When I view the source of the page the source is "../aspnet_client/system_web/2_0_50727/crystalreportviewers115".  At first the crystalreportviewers115 was not in subfolder at my sites root aspnet_client folder and so I copied it there.  But it still doesn't work.
    What seems odd is that we I was using the embedded version from VS 2008 (10.5.3700.0) the view source of the page showed the image path as "/aspnet_client/system_web/2_0_50727/CrystalReportWebFormViewer4" and this worked fine but when I use XI R2 (11.5.3700.0) the path is "../aspnet_client/system_web/2_0_50727/crystalreportviewers115" so where and why is there ".." for the XI R2 version.

    CR 11.5 is not supported on WIn 2008 server. See [this|https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=56787567] wiki.
    You may also want to take a look at the article [Viewer toolbar images appear as red u2018X on Crystal Reports VS .NET web viewer|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50aa68c0-82dd-2b10-42bf-e5502b45cd3a]. It may help, but if not, you'll have to move on to a supported version of CR.
    Ludek
    Follow us on Twitter
    http://twitter.com/SAPCRNetSup

  • How to view large images ?

    i just updated my phone c601 from symbian anna to belle..may i know how to view large images in the nokia internet browser..i cant change it

    sorry,since i have just updated my mobile,i can't show you how large is it,
    but i can show you how small is it...
    even though i click 'more>view image',
    the image that shows me is just that small....
    Attachments:
    scr000001.jpg ‏102 KB

  • Trouble viewing .tif files in bridge?

    When I open a folder of images in Bridge I can see the CR2 files but the edited .tif files only appear as a generic .tif icon, and when I press the space bar to try to preview them larger I get that same icon. I can see some of the .tifs as the icons but when I try to view those larger it's only a tiny preview image, like a 1"x1" icon. The only way I can view the images is to physically open each one in photoshop

    CR2 files are raw Canon files. If you can open them, it means your OK as far as the installation of the proper version of the ACR Plugin.
    If you can't see the thumbnails of the TIFFs but you can open the files themselves in Photoshop by double-clicking on them, then all you may have to do is Purge the Cache for the offending folder(s) through the Tools menu of Bridge Tools > Cache > Purge cache for folder "name_of_folder".
    Note that I am flying blind here as you haven't provided any sensible, meaningful and detailed information about your setup.
    If you gave some sensible, complete and detailed information, someone may be able to help you, such as your platform (Mac or Win), exact versions of your OS, of Photoshop and of Bridge, machine specs, what troubleshooting steps you have taken so far, etc.
    There are no clairvoyants or mind readers here.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Unable to view TIF files saved in pse7 on a Mac

    Hello! I burnt a few TIF files (downloaded as RAW files from camera via Lightroom 2.5, then converted to 8 bit TIF via pse7) onto CD. I was able to view the images on another pc but not on a Mac. Is there anything I can do? Maybe change settings on the Mac? Many thanks!

    It's most likely the settings you used for burning. Try burning a disc using Joliet, or just using the built-in burning capability in Explorer and see if you still have the same problem.

Maybe you are looking for

  • Increase refresh rate of my LCD display

    Hey hey hey. How can I increase the refresh rate available for my LCD display? Should I increase the refresh rate? I cannnot find where to change it.

  • Query on file system and sapcpe

    If, I have a distributed installation with central services instance on Windows and other App servers on AIX, then my sapmnt is on windows ... In this scenario, my /sapmnt/SID/exe will contain the Windows kernel and /usr/sap/SID/D01/exe/ will contain

  • Bookmarks have disappeared, how do I restore my bookmarks?

    My previously stored bookmarks have all disappeared. I don't know why this has happened today. I need help to restore them.

  • Requesting help with pivot in Oracle 10g

    Hey all, I have this table, let's call it table GRID that has the following columns: OBJECT_KEY             DATE_KEY               SEGMENT_ID             COLUMN_NAME COMMITTEDVIRTUALMEMORYSIZE_AVG 619                    3371                   1      

  • Best compression technique. iMovie HD 5 to QuickTime Pro to Web?

    Hi, I'm a video novice I think. But can you please tell me the best way to reduce an 12GB 'iMovie HD 5 project', for web? I used to have a .Mac account where for some strange reason Apple could manage to get my movie compressed down to about 300k the