Display .tif file

Hi,
I have searched the forum for an answer on how to display a .tif file in my Web Dynpro ABAP. However, I could not find a suitable answer. Therefore, I will try again ...
My current solution is opening a browser window with a link to the .tif file, but that requires that the user download/opens the file via a pop-up before viewing it. Now I would like the file to be displayed directly without further user action. How can I achieve this?
Thanks.

I'm with Sergio; why not just use the Image UI element.  Tiff can be a bit of strange file format and isn't always recognized the same way as JPG or GIF on the desktop.  You could also consider using the IGS to convert the file to another format. 
data: l_igs_imgconv type ref to cl_igs_image_converter,
        l_img_blob    type w3mimetabtype,
        l_img_size    type w3param-cont_len,
        l_bmp_xstream type xstring.
  create object l_igs_imgconv.
  l_img_size = xstrlen( gx_content ).  "The binary string with your TIFF Image Data
  call function 'SCMS_XSTRING_TO_BINARY'
    exporting
      buffer     = gx_content
    tables
      binary_tab = l_img_blob.
  call method l_igs_imgconv->set_image
    exporting
      blob      = l_img_blob
      blob_size = l_img_size.
  l_igs_imgconv->input = 'image/tiff'.
l_igs_imgconv->output  = 'image/jpeg'.
call method l_igs_imgconv->execute
    exceptions
      others = 1.
  if sy-subrc is initial.
    call method l_igs_imgconv->get_image
      importing
        blob      = l_img_blob
        blob_size = l_img_size.
    call function 'SCMS_BINARY_TO_XSTRING'
      exporting
        input_length = l_img_size
      importing
        buffer       = e_xstream
      tables
        binary_tab   = l_img_blob
      exceptions
        failed       = 1
        others       = 2.
  endif.

Similar Messages

  • SAP Document Viewer - .tif files

    We are having problems displaying .tif files in the Document Viewer. This is however working for other file extension types.
    Settings in TCode OAG1 are set to u2018Use HTML Controlu2019.
    What other settings are needed to allow a .tif file to display in Document Viewer u2013 currently it results in no display and a subsequent u2018File Download u2013 Securityu2019 Warning window opening?
    Thanks in advanceu2026u2026u2026

    Hi,
    This message is sent by Windows, probably with Vista or 7. Do you use them?
    What happens if you use "call internet browser" in OAG1?
    This note may help you too: [SAP note 1123723 (Security warning when starting SAP GUI components)|https://service.sap.com/sap/support/notes/1123723]
    Sandra

  • "Sharing" a Lr Mobile TIF file to the iPhone 6 camera roll converts the TIF to JPG.  Bad, bad, bad Lr Mobile!

    I have another discussion concerning Lr Mobile and TIF files that exist in the iPhone 6/iOS 8 camera roll (aka "Recently Added"): Lr Mobile 1.2.1 does not recognize .tif files added to iPhone 6 + iOS8 Camera Roll
    A new issue has surfaced.  When I add a TIF file in Lr Desktop to a collection that is synced with Lr Mobile, the TIF file appears as a TIF file in Lr Mobile.  So far, so good.  But if I then "share" that TIF image using the "Save Image" command in Lr Mobile, the image gets converted to a JPG file before it is added to the iPhone's camera roll.  This despite the fact that the iPhone 6 camera roll can save and display TIF files captured by the iPhone's camera.
    Please fix this problem, as well as the problem concerning display of camera roll TIFs in Lr Mobile that is the subject of my other discussion!
    Cheers,
    Jeff

    Rikk Flohr wrote:
    The file that comes into Lightroom mobile is labeled as a Tiff but is really a smart preview that Lightroom has generated from the Tiff and synced to the cloud.  The file your iPad is pulling in from LR Desktop is not a Tiff in the true sense. so it wouldn't make sense that it would save to camera roll as such.
    That makes sense.  I'll try enabling offline editing for that TIF file to force a download of the full file and then try to save it to the camera roll.
    Cheers,
    Jeff

  • Tiff (or tif) file created in Photoshop is not displaying in Firefox 2 or 3 with Quicktime plugin

    I embedded a tiff file that was created in Photoshop but it is not displaying in Quicktime/Firefox.
    It works in other browsers but not Firefox 2 or 3. And another point is that if the Tiff file is created in any other graphics application then it works!
    It leads me to think that Photoshop might be adding some metadata to the file that Quicktime/Firefox is not liking.
    Any ideas on what might fix this?

    There are different types of TIF files with different kinds of contents (compression schemes, channels, bit depths, etc). It is no surprise that you might get different results with different browsers/plugins.
    What kind of TIFF are you using? Why are you not using a more standard web image format that does not require the overhead and hassle of an optional plugin?

  • Tiff (or tif) file created in Photoshop is not displaying in Firefox 2 or 3

    I embedded a tiff file that was created in Photoshop but it is not displaying in Quicktime/Firefox.
    It works in other browsers but not Firefox 2 or 3. And another point is that if the Tiff file is created in any other graphics application then it works!
    It leads me to think that Photoshop might be adding some metadata to the file that Quicktime/Firefox is not liking.
    Any ideas on what might fix this? By the way it happens in both Mac and Windows

    There are different types of TIF files with different kinds of contents (compression schemes, channels, bit depths, etc). It is no surprise that you might get different results with different browsers/plugins.
    What kind of TIFF are you using? Why are you not using a more standard web image format that does not require the overhead and hassle of an optional plugin?

  • How to upload the tif file and Display into Iframe

    Hi all,
       My requirement is to upload 'n' number of tif files and display the file name in dropdown.
       If i select the file name, it should display the file in Iframe.
    My problem is i am not able to upload the tif file.
    try{
          byte []by=new byte[wdContext.currentContextElement().getPhotoResource().read(true).available()];
          wdContext.currentContextElement().getPhotoResource().read(true).read(by);
          String ext=wdContext.currentContextElement().getPhotoResource().getResourceType().getFileExtension();
          WDWebResourceType res=wdContext.currentContextElement().getPhotoResource().getResourceType();
          IWDResource resource=null;
          resource=WDResourceFactory.createResource(by,"sample",WDWebResourceType.getWebResourceTypeForFileExtension(ext));
           wdContext.currentContextElement().setPhoto(resource.toString());
              catch(Exception e){
    In the above code Photo is Iframe Context variable.
    If i upload tif file means it directly giving Save and Open options is giving.
    Please how to slove this probelm...........................
    Thanks,
    Suni

    Hi Satya,
    In HTML a TIF file can be displayed as"
    <html>
    <body>
    <object height="100%" width="100%"
    type="image/tiff" data="PO.tif">
    </object>
    </body>
    </html>
    Hope it helps.
    Regards,
    Alka

  • How to display a .TIF file

    Hey everyone,
    I have constructed a very simple program which takes a user input path from a dialog box, and displays the image in a new window. However currently when I try and use the program to open my .TIF image, the image looks like this:
    I have attached my program, as well as the .TIF picture file (in the ZIP folder). Thanks for the help!
    Attachments:
    open_img.vi ‏49 KB
    TEST1.zip ‏2223 KB

    Rory, Thank you for the response. I am still recieving the error listed above whenever I try and open one of the TIF files from the ZIP folder attached in the post. Hopefully this is just some sort of simple fix. Thanks again!
    Attachments:
    TEST1.zip ‏2463 KB
    IMAGE2.zip ‏2463 KB

  • Lr Mobile 1.2.1 does not recognize .tif files added to iPhone 6 + iOS8 Camera Roll

    I use an app called ProCamera 8 to save images taken with my iPhone 6 to uncompressed TIF files or TIF files with LZW compression.  The problem is that Lr Mobile doesn't see any kind of TIF file in my iPhone camera roll at all.  I've tried to:
    Save the photo taken by PC8 directly to the camera roll
    Save the photo taken by PC8 to it's own "Lightbox" folder, then export it to the camera roll.
    Manually import the TIF files that appear in the iPhone's camera roll using Lr Mobile's Add From Camera Roll command. TIF files in the camera roll don't even appear in the list of photos!
    None of the above methods will get a TIF file into a Lr Mobile collection.
    If I repeat the process with JPG files, everything works as expected, and all 3 methods listed above will get the JPG images into LR Mobile.
    I think this is a bug (and a serious one) because TIF files in Lr Desktop that are added to a collection that is synced with Lr Mobile appear Lr Mobile on my iPhone immediately.  So I know that Lr Mobile supports the display and editing of TIF source files.
    Until this is fixed, is there a workaround possible?
    Thanks,
    Jeff
    EDIT: The native Photos app in iOS 8 displays all of the TIF files correctly.

    The latest update to Lightroom Mobile now recognizes Tif files. Strangely, in the import window they show up with with a RAW label on them but, once imported, the metadata labels them as tiffs. This made me wonder if LR mobile also now supported actual RAW files. Alas, a quick test proved this to not be the case.
    That said, this is pretty cool news for those who take pictures with their phone's camera. I too use a camera app that allows me to save images as tiff files. Now these files can be imported to LR Mobile and edited using the array of tools found there. I've always liked Lightroom's superior versions of tools like Clarity, Highlights, Shadows, Whites, and Darks but found them of little use on Jpgs, due to the smaller amount of data they contain. While Tiffs aren't quite as info packed as RAW files, they are a huge step better than jpgs.
    One slight caveat which, depending on your outlook could be either a good or bad thing. When you save a tiff file from LRMobile it automatically converts the image to a jpg and reduces the image size to around 63% of the original image (the native size of a photo taken with my iPhone 6, 2448x3264, is reduced to 1536x2048). At first I was rather upset with this, as far as I can tell, unchangable automatic action. However, after thinking about it a while it occured to me, that for my use of LRMobile at least, it is not such a bad idea.
    FIrst let me say that I do not see my iPhone or my iPad Air as optimal photo editing devices. For serious editing I'm going to use my computer hooked up to my calibrated 27" NEC monitor. However, for doing some quick fixes/adjustments on iPhone snapshots this makes complete sense. Most other mobile editing apps only support jpg as do most of the major social sharing sites on the web. A smaller sized image, and it's inherrent smaller file size, is also better for emailing, sharing on websites, etc especially if you are using cellular data to upload with. Admittedly I would have prefered the option to save as either a tiff of jpg and also the option to select  the image size, but overall this "feature" is OK with me. As I said if your usage of LR Mobile differs from mine you could well be holding your head in your hands moaning by now.
    While I'm still waiting for the ability to edit keywords and other metadata, the thing that would make LR Mobile an essential app for me, this addition of tiff support has actually gotten it out of my "Archive" folder and back in to use.
    PS: one thing that has always worked well is the sync between devices (internet required) so it is geeat for getting your phone photos onto the your iPad.

  • Quicktime 7.7.1 plugin not displaying .tif legibly

    Since the update to Quicktime 7.7.1, I have not been able to view .tif files legibly in either Firefox (9.0.1 at the moment) or Chrome. I've tried updating the browser, disabling and re-enabling Quicktime, updating my system from 10.6.8 to 10.7.4, etc.
    I am looking at .tif files in black and white (text images) from database websites. Whereas previously they displayed with some grayscale scaling, now these files appear as if the scaling was done for display using only black and white pixels (so a pixel representing a part of the image that was primarily white with a little black appears as white)--the result is rather unlegible texts. As .tif is still a file type used by online databases, this is very, very inconvenient, particularly for scanned text documents with a high pixels-per-inch resolution.
    Although I can kludge through this by downloading the files and viewing in Preview (which does the image scaling "correctly"), what I end up having to do is load up a PC with a .tif specific plug-in installed. That, I think you would agree, is ABSOLUTELY RIDICULOUS.
    I have found nothing on this topic through websearching yet. Is this a known issue, is there a fix, and if not, is there any chance of getting it reported as a bug.

    http://www.apple.com/support/downloads/quicktime731forwindows.html

  • Preview only shows first page of TIF files

    Hello,
    I am having problems with Preview version 3.0.9 (409). When opening a multi-page TIF file, only the first page is displayed. The "page down" button does allow to jump to the following pages. (I am able to view the whole document with other programs). Is this a bug in the program or am I doing something wrong?
    Thanks!

    HI Fidelio,
    I'm not sure if this is a corrupted Preview preference file or not but it can't hurt a thing to try.
    Locate this file: com.apple.preview.plist It's here: /Home/Library/Preferences. Open the Preferences folder, locate that file and drag it to the Trash, empty the Trash and reboot. Your Mac will create a new pref file for you.
    Carolyn

  • Disable quicktime plug-in opening TIF files in browsers?

    Whenever I click on a TIF file in a browser (Chrome or Safari), Quicktime plug-in tries to open the file. I'd rather have the file opened by an application that actually works (quicktime fails to load or displays garbage in most cases, but I do not care - I just want it gone) or just downloaded without opening (preferred). Rightclicking to opt for download is not an option on the sites I use. In windows I could disable it via Quicktime icon in Control Panel, but I cannot find a comparable thing on the Mac. This is unbelievably frustrating. It cost me more than the Macbook itself in lost productivity...

    I already have TIFF files set to open with Preview. Nonetheless, USPTO.GOV website image files are all in TIFF format and it renders a broken plugin error in all browsers (Chrome, Safari, Opera, Firefox). Opera is actually the only browser that gives me the option to download the file, but that is cludgey. Anyone get it to actually work as a plugin?
    OPERA:
    CHROME:
    SAFARI:
    FIREFOX:
    Message was edited to include screenshots by: oslodude

  • PS7 - tif files squished upon opening.

    File>Open an existing tif file and it opens squished.
    Can't figure out.
    Is there a settings option?

    The forum won't allow to upload a tif.
    The files display correctly via Windows Photo Viewer, but soon as opened in PSE, the file is stretched vertically, skewing the image.
    Altered image
    Original -

  • Unable to preview jpg tif files in Win 8 Explorer

    Before installing Design Std CS6 (not CC) plus Acrobat XI Pro, I was able to preview jpg and tif files in Windows 8 Explorer in any of the views (XLg, Large, Medium icons) and in the Preview Pane. However, now I only see the program icon, regardless of what application (P'shop or Win Photo Viewer) I associate it with. PDFs display fine in Win Preview.
    I know I can preview in Bridge, but how do I get back the ability to preview JPGs and TIFs in Win Explorer as well?

    Okay, problem has been solved: the Adobe install changed two Windows Explorer Folder Options (View > Options > Folder Options: View tab) - Always show icons, never thumbnails and Display file icon on thumbnails were checked after the install, but not before (I hooked up cloned HD I had made before the install to check). I can now see thumbnails (instead of program icons) in Win Explorer in the various views (Large icons, Medium icons, etc), as well as in Preview Pane. Hallelujah!!
    Can't imagine why anyone would want program icons instead of thumbnails - or why in $&!^% Adobe would cause that change to be made on the install, but everything's back to normal and I'm a happy camper once again.
    Thanks again for sticking with this, kglad - I really appreciate it! Hope this helps someone else.  Case closed.           ~Carol

  • JIMI Displaying TIFs

    I'm trying to display a TIF file using the JIMI API. I'm getting the file in through a Byte[] and converting to image and then adding the image to a JimiCanvas, but its not displaying at all.
    Heres my code so far:
                    //Receiving
                    byte[] iArr = new byte[rd.available()];
                    rd.read(iArr);
                    System.out.println(iArr.length+ "bytes received.");
                    i = Toolkit.getDefaultToolkit().createImage(iArr);
                    //Create the display area for the Images to be displayed on
              jCanvas = new JimiCanvas();
              jCanvas.setBackground(SystemColor.window);
              jCanvas.setForeground(SystemColor.desktop);
              jCanvas.setWillSizeToFit(true);
                    jPanel1.add(jCanvas, BorderLayout.CENTER);
                    jCanvas.setImage(i);
                    jCanvas.setVisible(true);
                    jPanel1.setVisible(true);
                    jPanel1.validate();
                    jCanvas.validate();I realise Im maybe doing it completely wrong and would appreciate any help you might be able to give.
    Thanks
    Edited by: stu_328 on Jan 28, 2008 8:46 PM

    Anyone?
    Or alternatively advise of a different method of implementation e.g JAI if known. I am totally in the dark on this matter.

  • Displaying TIF with JIMI

    I'm trying to display a TIF file using JIMI. I'm getting the file in through a Byte[] and converting to image and then adding the image to a JimiCanvas, but its not displaying at all.
    Heres my code so far:
           //Receiving
                    byte[] iArr = new byte[rd.available()];
                    rd.read(iArr);
                    System.out.println(iArr.length+ "bytes received.");
                    i = Toolkit.getDefaultToolkit().createImage(iArr);
                    //Create the display area for the Images to be displayed on
              jCanvas = new JimiCanvas();
              jCanvas.setBackground(SystemColor.window);
              jCanvas.setForeground(SystemColor.desktop);
              jCanvas.setWillSizeToFit(true);
                    jPanel1.add(jCanvas, BorderLayout.CENTER);
                    jCanvas.setImage(i);
                    jCanvas.setVisible(true);
                    jPanel1.setVisible(true);
                    jPanel1.validate();
                    jCanvas.validate();I realise Im maybe doing it completely wrong and would appreciate any help you might be able to give.
    Thanks

    Anyone?
    Or alternatively advise of a different method of implementation e.g JAI if known. I am totally in the dark on this matter.

Maybe you are looking for

  • How to create a virtual folder in JavaWebServer 2.0

    hi, i am new to Java servlets and JSP and i am working on Java Web Server 2.0. I know that the default folder for placing servlet class files is - "servlets" under the JWS 2.0 folder and that for JSP files is - "public_html". I want to know how to ma

  • Monitor Keep Flashing after connecting External Monitor with HDMI to VGA Adapter

    Dear Support, Here the case that i have connecting an External Monitor by HDMI to VGA Adapter.Once it connected, the monitor (Macbook) with keep flashing and no signal on the external monitor. Please help.

  • Agents cannot determine login

    11.2 agents on XP, W7 and Mac are logging into ZCC perfectly fine, and the agents correctly display who the currently logged in user is. Inventory seems to not be able to determine logged in user though on any of the agents. What could cause this?

  • Command - C shortcut not working

    Ok when i press command and C over a highlighted phrase it doesnt work, the copy shortcut isnt working but pasting and all of the other things are working fine. HELP! Message was edited by: gchhour

  • Why Firefox 4 automaticaly zoom in, when I open something on new tab?

    I have windows 7 and newest version of firefox 4. Everytime, when I open som link in new tab, firefox automatically zoom-in. I have to keep using zoom-out with my mouse scroll and it is quite annoying. I havent got any zoom problems with firefox 3.