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

Similar Messages

  • Urgent : How to upload a tif file without using upload element

    could someone please tell me how to upload a tif file(any file) without using upload element. Function Module GUI_UPLOAD does not work. Please suggest. Appreciate your suggestions.

    Hello Suri,
    there's currently no way to achieve this.
    Best regards,
    Thomas

  • How to display a pdf file in jsp

    hi,
    How to display a pdf file in jsp iam having a class which will return fileinputstream of the file object. the pdf file is in server.
    regards
    Arul

    A JSP is a combo of HTML and Java, so you can't really "display" a PDF file in a JSP.
    You can provider a href link to the PDF file in your JSP.
    You can use some utility package to read the contents of the PDF, pull certain things out of it, and display that in your JSP as html
    In a servlet you can set the content type to application/pdf and write the binary data of the PDF back to the browser. Once the browser finishes reading in the data it should open the PDF.

  • HT2506 How to view a .tif file in a MAC

    How to view a .tif file in a MAC.
    I cand find an MDi convertor for a MAC Pro.  Please advise.

    Problem solved.  I went to cnet.com and searched for "postscript viewer."  The top item in the search results was "Postscript Viewer" from a company called Rampant Logic.  It works great, and is free.
    Sam Cohen
    Executive VP and CEO, Pro-Gun New Hampshire --> www.PGNH.org
    .....RKBA!..... (the exclamation point means "Shall Not Be Infringed!")

  • 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 the SAVE  file name dialogue in Forms 6i

    Dear All,
    Just like we use Get_file_Name to display the MS Open file dialogue..
    how do we display the SAVE file dialogue in forms..??
    whats the function name???
    regards,
    Sidhant

    hello friend,
    u can use webutill lib to open/save dialog box
    also must refer this link,
    Re: How To Call Save As Dialog?
    Regards
    Chandan

  • How to display an XMl file in a webydynpro Application.

    Hi All,
    I am working with a webdynpro application where i have an xml file. when ever i run the webdynpro application it has to display that xml file in the browser instead of view. It would be appreciable if anyone give me some idea on how to start this application
              Thanks in advance
    Regards
    ravi

    HI Ravi,
    Insert a portalIFRame or IFrame with width 100%.
    Create a context variable (Say xmlFile) of type String and bind to Source property of PoratlIFrame .
    Put the xmlfile inside Project\src\mimes\Components\Package\
    Let the xml file name be Config1.xml.
    Write the following code inside wdDoinit()
    wdContext.currentContextElement().setPortalFrame(WDURLGenerator.getWebResourceURL(wdComponentAPI.getComponent().getDeployableObjectPart(),"Config1.xml"));
    Regards
    Fahad Hamsa

  • How to display a .txt file?

    i would like to ask if JAVA can open and display a text file by issuing a command from my application
    is it possible to do it without using a JEditorPane?
    something else too, how can i set the background for my application to be a .jpg image?
    i searched and realised there is no such method as
    setBackground(String url)

    Try this... Note you need to add adequate exception trapping and detect special cases like the file being larger than the allocatable size of a character array (in which case you can't convert the file to a string and will need to 'display' the file in sections)...
    import java.io.*;
    public class LoadFile {
      public static String fileToString(File file) throws IOException {
        char[] fileContents = new char[(int) file.length()];
        FileReader fr = new FileReader(file);
        if(fr.read(fileContents) != fileContents.length) {
          System.err.println("There was a problem reading the file contents");
          return null;
        else return new String(fileContents);
      public static void main(String[] args) throws IOException {
        if(args.length != 1) System.err.println("Usage:\n\tjava LoadFile <filename>");
        else {
          File f = new File(args[0]);
          try {
            String s = fileToString(f);
            System.out.println(s);
          } catch(IOException e) {
            System.err.println("Whoops");
    }Hope that helps...

  • How to display the attached file of DMS in WEB Dynpro

    Hello everybody! I have to work with DMS documents on the portal. Do You know, how display the attached files of DMS document in WEB Dynpro?
    Pavel Truhlář

    Hi Pavel,
    By using the below F.M we can display DMS Document.
    CALL FUNCTION 'CVAPI_DOC_VIEW'
      EXPORTING
        PF_DOKAR               = 'ZAP'
        PF_DOKNR               = LS_DMS_TABLE-DOKNR
        PF_DOKVR               = '00'
        PF_DOKTL               = '000'
       PF_HOSTNAME            = 'DEFAULT'
       PF_APPL_START          = ' '
       PF_GET_URL             = 'X'
    IMPORTING
       PFX_URL                 = V_URL
    EXCEPTIONS
       ERROR                  = 1
       NOT_FOUND              = 2
       NO_AUTH                = 3
       NO_ORIGINAL            = 4
       OTHERS                 = 5.
    After getting the V_URL Create External Window.
      LO_API_COMPONENT  = WD_THIS->WD_GET_API( ).
      LO_WINDOW_MANAGER = LO_API_COMPONENT->GET_WINDOW_MANAGER( ).
      LO_WINDOW         = LO_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW(
                    URL = LW_URL ).
    BR,
    Jack.

  • How to display a large file in JTextArea

    i am displaying a large file(a multi MB) in a JTextArea, it is showing java.lang.outofmemoryerror
    are there any solutions for this problem or is there any better way other than JTextArea ???

    thanks for replying but its all abt Tables
    i am new to java
    i asked how to display a large Text file in a JTextAreathanx
    --santosh                                                                                                                                                                                                                                                                                                   

  • How to display thumbnail of files????

    i want to display my avi file list in thumbnail view as windows explorer is providing... can anyone tell me... how can i implement the same??

    Cross post: http://forum.java.sun.com/thread.jspa?threadID=646758

  • How to display new downloaded files soon

    I have begun to use Mac instead of PC.
    I have a question.
    When I download some files with Safari from some websites, I save them on Desktop.
    But there are not the files I have downloaded on Desktop and they can be only founded through Finder (Finder > Desktop) until Mac is rebooted. It is not until reboot that I directly find the files exist on Desktop.
    Does anyone know how to display downloaded files soon after getting them?

    Hi Nikaku ............
    The best thing to do to find your downloads - an not spread ALL over the desktop an a easy way to find them is to create a NEW folder on your desktop an call it something like - Downloads -
    * After you did this, open Safari an go to the preferences, now select in the section 'Location downloaded files' search for the folder you created an select it.
    Next time you download something you will find it in that folder 'Downloads'
    Good luck ...
    Dimaxum

  • How to display a html file without tags?

    Hello,
    I am new for Java programming. Now i have to display a html file without all the tags. My code is the fllowing:
    u = new URL("http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?db=protein&val=55584070");
    BufferedReader in = new BufferedReader(new InputStreamReader(u.openStream()));
    while ((s = in.readLine()) != null) {
    System.out.println(s);
    in.close();
    Unforturnately, the output is the soucecode of the html file and I just want the content.
    Please help me.
    Thanks a lot in advance,
    Danica

    Here's a simple example
    http://forum.java.sun.com/thread.jspa?threadID=293830
    I haven't tested it, but I bet camickr did.

  • How to display the HTML File Titles instead of File Names

    Hello All,
    I want to display the HTML file titles instead of File names in the Search Results. I've tried to give this command in the 'Visible Properties' in the 'SearchResourceRenderer' as:-
    Visible Properties: rnd:displayTitle
    However this is not working for me. If anyone has an idea of what to pass here or any other alternative to display the Titles.
    Regards
    Vaib

    Summary of steps:
    1) Standard Layout Set used: SearchResultLayoutSet
    2) Create a new layout set using ADVANCED COPY
    3) Change properties as you require
    4) Next modify the search OTH file to reflect this newly created Layout Set (under KM > root > etc > oth > search.oth edit xml file property rndLaoutSet from SearchResultLayoutSet to MyCustomSearchResultLayoutSet)
    5) Check in the document to complete the editing process if Edit Locally is used!
    6) Lastly, activate the OTH file by –
    •     Setting Debugging settings via Debugging Settings
    •     Performing a normal search
    •     Clicking Rendering information and then following link OTH Overview click on Reload
    7) Reload above reloads the OTH file and performing search again will yield the desired result
    8) To turn off the Rendering Information link remove the user id from Debugging Settings.
    Cheers
    Ankit

  • How to display a .exe file in java applets by avoiding the file downloadbox

    Hi sir,
    I know that in order to display a any file(or)program in java applets you need to use showDocument().Where you cannot use exec() in java applets.
    My problem is that when i use showDocument() to display .exe file.It is showing a file download dialog box.If we click & open only it is opening that .exe file.Here i want to open the .exe file without showing that file download dialog box in java applets.
    Since,i am undergoing a project which involves it,it is quite urgent.pls.do provide the exact code in java applet without showing that file download dialog box.If it can't be done pls. do provide any other possibilities in order to be displayed on the browser.Thank U.
    Regards,
    m.ananthu

    Hi!
    I think you it's better to write a server socket program
    in server and open a socket connection to server socket then
    send exe file content via connection.
    (I guess you know applets only have permission to open socket connection to their code base)
    Bye!

Maybe you are looking for

  • The application was unable to start correctly (0x00007b) adobe

    HI All, Are you able to help?! I have just downloaded a trial version of Adobe Lightrooms from the Cloud and get the following error message 'the application was unable to start correctly (0x00007b)' Does anyone have a fix? @

  • Tired of BT and the lack of information.

    right now it seems BT are still doing the "infinity is coming" thing, you know where they say a date and then move it back 3 months when the date comes arround.  they got told off for doing that so their solution?  just remove the pages where they ga

  • Failure of internal drives? Reliability concern....

    I've just moved to a new Mac Pro after a catastrophic drive failure of my old one. The old one had the Apple OEM 250G internal drive and a WD 750G additional internal drive. The WD drive had 2 partitions, both of them Carbon Copy Cloner clones of the

  • Legend customization howto....

    hi everybody, i have the need for a project i'm involved in, to customize the legend items of a plot with significative names retrived from a configuration file. I've thought to use property node but no method is defined to do that. Does anybody hold

  • Wsdl file

    Hi...All, i am doing RFC-SOAP Scenario, for this i need WSDL File is required for my requirement. my client is not providing wsdl file, i want to generate the wsdl file,  i dont know how to genarate the wsdl file..pls suggest me to generate the wsdl