Displaying image on welcome view

Hi Gurus!
    I need to display image document stored on server on welcome view.
For that, I have added MIME object after Importing that image. Then, created image in RootUIElementContainer of 'Welcome View' and does the mapping in context tab. After this, in the Method Tab added the following code in WDDOINIT --
DATA: MR      TYPE REF TO IF_MR_API,
          CONTENT TYPE        XSTRING.
MR = CL_MIME_REPOSITORY_API=>GET_API( ).
    MR->GET(
    EXPORTING  I_URL     = 'sap/bc/webdynpro/sap/zpicture/J1.jpg'
             IMPORTING  E_CONTENT = CONTENT ).
Finally, I did context mapping in windows.
Now, saved and activated. But, when I test-run it data does not come up.
Hence, will anyone will give me lead as to where I'm wrong or better any link for that purpose.

Thank you all!
My issue has been resolved.
Thomas, special credit to you because your answer is more specific to my case. I had added the MIME folder and picture in that. But, I was trying to call it in WDDOINIT. Thanks for underlying the mistake.
Anyways, thanks again to you all.

Similar Messages

  • Display Image in Power View and Power BI

    Hi all,
    I need to create a report in power view where i need to display images in tile. I have found one solution to do so, to store the images as a binary data in data model table using the following link
    http://www.sharepointanalysthq.com/2014/09/adding-data-bound-images-to-power-view-with-power-query/comment-page-1/#comment-87049
    I tried this but still not able to show the images.
    Please anyone can help me with solution in detail.
    Thanks,
    Piyush Jain

    Hi Piyush,
    are you storing your Data in an Excel Power Pivot model?
    Make sure to follow step marking the column containing the Pictures as Data Type Binary.
    Are you using jpeg or another picture format?
    Best,
    Mark

  • How to display image in the view

    hi friends
    I created one small webdynpro application it contains one default view.
    Now I want display one image on that view.(image is located in my local machine)
    i am new to webdynpro
    help me out.
    thanks
    ram.

    hi,
    refre the following link.
    http://help.sap.com/saphelp_nw70/helpdata/EN/f3/1a61a9dc7f2e4199458e964e76b4ba/frameset.htm
    Upload Image file from system in Web dynpro view
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0e599cc-2862-2b10-54a9-dcf1376b52d7
    Dynamic images in Web Dynpro for Java applications
    Dynamic images in Web Dynpro for Java applications
    Thanks
    Abhilasha
    Edited by: Abhilasha Dahare on Sep 17, 2008 6:24 AM

  • Display image in view

    Hi,
    My requirement is to create a  web dynpro application where the first view contains all images stored in ECC along with one button (Display image). When the user clicks on the button Display image then another view should display the image on the screen.
    I have created View1 with a table,which display the details of the table STXBITMAPs in it,when i select a row and press a button second view is displayed with a UI conatiner of type IMAGE.
    Basiccaly when button on view1 is pressed, I get the value of the TDNAME field via lead_selection method and set this value to a global attribute, whch inturn is copied into second view and bonded to the SOURCE attribute of the UI element.
    My problem is , that global attribute is being updated probley and value have been passed to second view..but Image is not being displayed on the screen.
    Can anyone help me out in this.
    Thanks in advance.
    Pooja

    You don't necessarily have to move your images from STXBITMAPS to the MIME repository.  You can display any image - not just those in the MIME repository, by placing the content in the ICM Cache.  This creates a temporary URL for any content.  So you just need to read the binary content of the image from STXBITMAPS into a XSTRING variable.  From there you can use this code sample to put the content in the cache and generate a URL:
    ****Create the cached response object that we will insert our content into
      data: cached_response type ref to if_http_response.
      create object cached_response
        type
          cl_http_response
        exporting
          add_c_msg        = 1.
    *  cached_response->set_compression( options = cached_response->IF_HTTP_ENTITY~CO_COMPRESS_IN_ALL_CASES ).
    try. " ignore, if compression can not be switched on
          call method cached_response->set_compression
            exporting
              options = cached_response->co_compress_based_on_mime_type
            exceptions
              others  = 1.
        catch cx_root.
      endtry.
    ****set the data and the headers
      data: l_app_type type string.
      data: l_xstring type xstring.
          cached_response->set_data( me->gx_content ).
          l_app_type = 'image/x-ms-bmp'.
      cached_response->set_header_field( name  = if_http_header_fields=>content_type
                                         value = l_app_type ).
    ****Set the Response Status
      cached_response->set_status( code = 200 reason = 'OK' ).
    ****Set the Cache Timeout - 60 seconds - we only need this in the cache
    ****long enough to build the page and allow the IFrame on the Client to request it.
      cached_response->server_cache_expire_rel( expires_rel = i_cache_timeout ).
    ****Create a unique URL for the object
      data: guid type guid_32.
      call function 'GUID_CREATE'
        importing
          ev_guid_32 = guid.
      concatenate i_path '/' guid '.' i_format into r_url.
    ****Cache the URL
      cl_http_server=>server_cache_upload( url      = r_url
                                           response = cached_response ).

  • How to display a image in webdynpro view using a bytearry

    Hi Frndz..
    How to display an image in a view using webdynpro java ..i have bytearry object in context ..like
    *byte[] img = wdContext.nodeYywwwdataImport_Input().nodeOutput().nodeOutMime().currentOutMimeElement().getLine();*_
    by using this i need to show image in view..
    Kindly help me ....
    Thankas in Advance
    Regards
    Rajesh

    Hi,
    byte[] img = wdContext.nodeYywwwdata_Import_Input().nodeOutput().nodeOutMime().currentOutMimeElement().getLine();
    use this code to create resource and you need to set this value to the context created to display the image suppose in the image UI and set the source property with this attribute:-
    IWDResource res=WDResourceFactory.createCachedResource(b,"MyImage",WDWebResourceType.JPG_IMAGE);
    IPrivateAppView.IVn_ImageTabElement imageEle=wdContext.createVn_ImageTabElement();
           imageEle .setVa_Name(res.toString());
    wdContext.nodeVn_ImageTab().addElement(imageEle);
    Hope this may help you.
    Deepak

  • How do you display a new image in  webdynpro view?

    How do you display a new image in  webdynpro view?
    Where is the image stored and how do we specify the image path?

    hi ,
    The UI element Image enables you to integrate graphics into the Web application in a format that is processed by the Web Server u2013 for example, GIF, JPG, and PNG format. Height and width of the graphic can be specified using the properties height and width. The graphic is displayed without borders.
    saveur image   as mime
    with Mime Objects u cn upload doc , jpeg, or giff files from our local system into the webdypnpro system .
    Right click on ur component->mime object->import
    In the transaction sicf/bc/webdynpro , u cn check your component name there you can view the mime objects created by you .
    also refer the SAP online help :
    http://help.sap.com/saphelp_crm50/helpdata/en/46/bb182fab4811d4968100a0c94260a5/content.htm
    to knw more abt mime repositories.
    http://help.sap.com/saphelp_nw04/helpdata/en/f3/1a61a9dc7f2e4199458e964e76b4ba/content.htm
    regards,
    amit

  • Images displaying differently in Library view to Develop - also affecting Exports

    I've run in to a strange problem since the 4.1 upgrade.
    When displayed in the Library view, images are not appearing correctly.  In my case, there is a huge amount more noise in the Library view compared to the Develop view.  This is also affecting Exports.
    I have been unable to find any answers online, and only found one other case of this reported via a You Tube video.
    Any ideas?!
    Many thanks
    Rick

    I am assuming you have a correctly calibrated monitor calibrated using a hardware calibrator. Lightroom sometimes shows the aforementioned problems with canned monitor profiles on windows machines. Now that out of the way:
    I am also having this problem - the library view is closer to the printer output - very frustrating! In dev mode the image is lighter - sometimes appears to be too hot, but in library and during print it is just right. This was not a problem in 3 - what's the fix?
    Have you tried seeing what happens when you soft proof for the paper profile in the Develop module?
    It seem the fit views do not match up...the confusion comes in that it seems the fill views sometimes do, and sometimes do not match. when the images appear different, I've the sense in dev the images are brighter and hotter.
    This can happen if your image is very noisy or has a lot of high frequency detail. The sharpening preview in fit view that is applied in Develop tends to brighten images with lots of noise or detail. It also happens when you are applying a lot of color noise reduction and have a lot of colored detail. SInce Lightroom cannot really show you the result of this correctly but for when looking at 1:1, this results in the Fit preview showing more color saturation than there really is.

  • Displaying images in the JavaHelp Viewer

    I have developed a small help system which works, but images are not displayed in the JavaHelp viewer. They are displayed when I load the .html file into a browser.
    All images are collected into an .images file, and are referenced there. The Map entries for each image resembles the Map entries in the sample, but I believe that none of the images within that directory are being displayed by the javahelp system.
    Directory layout in eclipse is:
    <pre>
    <project>
    &brvbar;
    +----help
    &brvbar; &brvbar;
    &brvbar; +-images
    &brvbar; &brvbar;
    &brvbar; +-prj.hs
    &brvbar; &brvbar;
    &brvbar; +-prj.html
    &brvbar; &brvbar;
    &brvbar; +-prjMap.jhm
    &brvbar; &brvbar;
    &brvbar; +-prjTOC.xml
    &brvbar; &brvbar;
    </pre>
    Sample image declaration from Map file: <mapID target="SuccessWin1"
    url="images/Successwin1.png"/>
    When executing in the eclipse IDE, I copy all friles from the help directory to the bin directory so it is in the classpath. When building the .jar, all files from help, and images are placed directly at the first level of the jar so that the '...="images/..."' reference in the Map will succeed. Yet it does not.
    Many thanks for any suggestions.

    I have developed a small help system which works, but images are not displayed in the JavaHelp viewer. They are displayed when I load the .html file into a browser.
    All images are collected into an .images file, and are referenced there. The Map entries for each image resembles the Map entries in the sample, but I believe that none of the images within that directory are being displayed by the javahelp system.
    Directory layout in eclipse is:
    <pre>
    <project>
    &brvbar;
    +----help
    &brvbar; &brvbar;
    &brvbar; +-images
    &brvbar; &brvbar;
    &brvbar; +-prj.hs
    &brvbar; &brvbar;
    &brvbar; +-prj.html
    &brvbar; &brvbar;
    &brvbar; +-prjMap.jhm
    &brvbar; &brvbar;
    &brvbar; +-prjTOC.xml
    &brvbar; &brvbar;
    </pre>
    Sample image declaration from Map file: <mapID target="SuccessWin1"
    url="images/Successwin1.png"/>
    When executing in the eclipse IDE, I copy all friles from the help directory to the bin directory so it is in the classpath. When building the .jar, all files from help, and images are placed directly at the first level of the jar so that the '...="images/..."' reference in the Map will succeed. Yet it does not.
    Many thanks for any suggestions.

  • BT Cloud - images not displaying in BT Cloud View

    I have had an issue several times now with image thumbnails not displaying in BT Cloud View. All I get is a green or grey icon/tile. It is not all the images - just some of them - and they will open OK and display in a photo viewer.
    Images display OK on the web version of BT Cloud - just not in BT Cloud View.
    Any ideas how to force a refresh to get the thumbnails to show?

    I used to see quite a lot of thumbnails/photos not showing correctly in the web interface, and now all that I have just checked seem to be OK.
    Unfortunately, due to another BT Cloud bug I can't see most of my photos in the PC client. (see http://community.bt.com/t5/Other-BB-Queries/BT-Cloud-another-curious-bug/m-p/830660#U830660 )
    Maybe (???) there was a parallel bug in both web and client versions which they have fixed on the web side, but not yet deployed into a new version of the client?  In which case the problem will go away when they do update.

  • Open and display image in MVC layout

    Hello!
    I cant figure out how I shall do this in an MVC layout:
    The program request user to open an image file that are then displayed in a JLabel
    My setup at the moment resolve in a nullpointerexeption because it dont get any actual image file, but I dont understand what I have missed.
    I can not post the whole code fo you to run because it is to big, so I post the part that are the most important. please have a look.
    PicturePanel
    //Import Java library
    import javax.swing.*;
    import java.awt.*;
    public class PicturePanel extends JPanel {
         //Variables
         private ImageIcon picture;
         //Method to get information of the selected file
         PicturePanel (String fileName) {
              picture = new ImageIcon (fileName); //Get the filename
              int w = picture.getIconWidth(); //Get the image with
              int h = picture.getIconHeight(); //Get the image height
              //Set preferable size for the image (Use the properties for the selected image)
              setPreferredSize(new Dimension(w, h));
              setMinimumSize(new Dimension(w, h));
              setMaximumSize(new Dimension(w, h));
         //Method to draw the selected image
         protected void paintComponent(Graphics g) {
              super.paintComponent(g); //We invoke super in order to: Paint the background, do custom painting.
              g.drawImage(picture.getImage(), 0, 0, this); //Draw the image at its natural state
    }From my model:
    //Local attributes
         boolean check = false; //Used to see if a statement is true or not
         PicturePanel pp;
         JFileChooser fc;
         int returnVal;
    //newFile in File menu
         public void newFile() {
              //Open a file dialog in users home catalog
              fc = new JFileChooser();
              //In response to a button click:
              returnVal = fc.showOpenDialog(pp);
              System.out.println("You pressed new in file menu");
         }From my controler:
    //User press "New" in File menu
              else if (user_action.equals("New")) {
                   //Call method in model class
                   model.newFile();
                   //Update changes
                   if (model.returnVal == JFileChooser.APPROVE_OPTION) {
                        System.out.println("Hello1");
                        File f = model.fc.getSelectedFile();
                        if (model.pp != null)     
                             model.pp = new PicturePanel(f.getAbsolutePath());
                        System.out.println("Hello2");
                        //Display image (Here is line 83)
                        view.setImage_DisplayArea(model.pp);
                        System.out.println("Hello3");
              }From my view:
    //Sets the image to be displayed on the image_display area (Here is line 302)
         public void setImage_DisplayArea(PicturePanel pp) {
              image_display.add(pp);
         }The complet error:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
         at java.awt.Container.addImpl(Container.java:1015)You pressed new in file menu
    Hello1
    Hello2
         at java.awt.Container.add(Container.java:351)
         at View_Inlupp2.setImage_DisplayArea(View_Inlupp2.java:302)
         at Control_Inlupp2.actionPerformed(Control_Inlupp2.java:83)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:334)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1050)
         at apple.laf.CUIAquaMenuItem.doClick(CUIAquaMenuItem.java:119)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1091)
         at java.awt.Component.processMouseEvent(Component.java:5602)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3129)
         at java.awt.Component.processEvent(Component.java:5367)
         at java.awt.Container.processEvent(Container.java:2010)
         at java.awt.Component.dispatchEventImpl(Component.java:4068)
         at java.awt.Container.dispatchEventImpl(Container.java:2068)
         at java.awt.Component.dispatchEvent(Component.java:3903)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
         at java.awt.Container.dispatchEventImpl(Container.java:2054)
         at java.awt.Window.dispatchEventImpl(Window.java:1801)
         at java.awt.Component.dispatchEvent(Component.java:3903)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)Edited by: onslow77 on Dec 16, 2009 5:00 PM
    Edited by: onslow77 on Dec 16, 2009 5:04 PM

    Hello again!
    Anyone that can help me figure out how to implement this in an MVC layout, I feel stuck.
    I post a little program that open and display an image file so that you better can understand what I whant to do.
    ShowImage
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.File;
    import javax.swing.filechooser.*;
    public class ShowImage extends JFrame{
         //Variables
         JFileChooser fc = new JFileChooser();
         PicturePanel pp = null;
         ShowImage () {
              super("Show"); //Title
              //Create the GUI
              JPanel top = new JPanel();
              add(top, BorderLayout.NORTH);
              JButton openBtn = new JButton("Open");
              top.add(openBtn);
              openBtn.addActionListener(new Listner());
              //Settings for the GUI
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              pack();
              setVisible(true);
         class Listner implements ActionListener {
              public void actionPerformed(ActionEvent ave) {
                   int answer = fc.showOpenDialog(ShowImage.this);
                   if (answer == JFileChooser.APPROVE_OPTION){
                        File f = fc.getSelectedFile();
                        //Check
                        System.out.println(f);
                        System.out.println(pp);
                        if (pp != null)
                             remove(pp); //Clean so that we can open another image
                        //Check
                        System.out.println(pp);
                        //Set the PicturePanel
                        pp = new PicturePanel(f.getAbsolutePath());
                        //Check
                        System.out.println(pp);
                        //Add PicturePanel to frame
                        add(pp, BorderLayout.CENTER);
                        validate();
                        pack();
                        repaint();
         //Main
         public static void main(String[] args) {
              new ShowImage();
    }PicturePanel
    //Import Java library
    import javax.swing.*;
    import java.awt.*;
    public class PicturePanel extends JPanel {
         //Variables
         private ImageIcon picture;
         //Method to get information of the selected file
         PicturePanel (String fileName) {
              picture = new ImageIcon (fileName); //Get the filename
              int w = picture.getIconWidth(); //Get the image with
              int h = picture.getIconHeight(); //Get the image height
              //Set preferable size for the image (Use the properties for the selected image)
              setPreferredSize(new Dimension(w, h));
              setMinimumSize(new Dimension(w, h));
              setMaximumSize(new Dimension(w, h));
         //Method to draw the selected image
         protected void paintComponent(Graphics g) {
              super.paintComponent(g); //We invoke super in order to: Paint the background, do custom painting.
              g.drawImage(picture.getImage(), 0, 0, this); //Draw the image at its natural state
    }//The endEdited by: onslow77 on Dec 16, 2009 7:30 PM

  • Display image in sub_VI

    I am running a Linux (no NI Vision support) LabVIEW application where I have a “main” DAQ VI collecting raw u8 data. I want to be able to display the data as an image in a sub-VI. The first time I call the sub-VI to display the first image everything works fine, however, on the second and subsequent calls to the sub-VI I get an error saying that the sub-Vi is already open and needs to be closed before being called. I don’t have the screen space to adequately display images in the main VI and still have the DAQ controls visible.
    Is there a way to have one VI continuously collect and format image data and then display the data in a second VI?
    Thanks in advance

    Thank you for the reply
    In the example you provided the sub-VI is called, executes, and terminates. I need to be able to repeatedly call a sub-VI that does not terminate. I need to do this so that I can update an image and allow an operator to view the image (and perform event functions on the image such as mouse click).
    Is there a way for a main VI to call a sub-VI and not have to pend (wait) for the sub-VI to complete execution?
    Is there a way to call (i.e. pass data) to a sub-VI that is already running?
    Thank you again for your help

  • Display image in email

    I would like to be able to add an image (the firm logo) in the body of an apex/htmldb email, and have it shown in the email and not be blocked by Outlook. Is this possible? Thanks, Jan

    Hi Gopi,
    Thanks for your reply.
    when i open the email in outlook, i am getting 'If there are problems with how this message is displayed, click here to view in a web browser'. So when i view in browser(IE) on clikc of this link, the email opened from the temporary internet files(AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Outlook\54AMMRVF\email (4).mht)
    Here i am able to see the image.
    Suppose if i forward this email to my gmail and opening in a browser, this time i cant see the image. i am getting only the blank space there.

  • Display image in Smart camera web interface

    Hi!
    I need some assistance with LV-RT. 
    What I have succeeded is to enalble the web server on NI 17XX camera and successfully displayed a VI with Image Display on it. I thikn I got the hang of it. 
    What I would like to know is there another way to display images on the camera web page. I really do not need the whole VI up there just an image and a string with serial number. One way I know would work is to write an image file to the system memory and then embed that image to the web page, but I am not sure that is the best solution as writing process takes time and it is not recommended to write too often to the program memory (am I right?).
    So, is there some way to assign some object to say a memory bank and display it (without having to install the runtime maybe) on the page?
    Thank you for your attention,
    Mart

    Hey Mart,
    Going back to your original question; are you looking to stream images to a web page from your smart camera or simple see what your camera is seeing when you go to a particular site? Take a look at the sample project below. It is sort of a work around, but it posts an image to a web service. Essentially it snaps an image, saves it, and then posts the saved image to a web service. You will have to change the file path for the image, then build and deploy the webservice from the project view. Also, it would be beneficial to take a look at the webservice build specifications. The webbing to view the snapped image from your local machine would then be viewable from your web browsers at the address : "http://localhost/Stream_Service/ShowImag"
    Let us know if you have trouble getting this example working. Also, perhaps another visit to what your end goal is would be helpful. What was it that you had working?
    Hope this helps
    -Ben
    Message Edited by BCho on 04-10-2009 02:27 PM
    Hope this helps.
    -Ben
    WaterlooLabs
    Attachments:
    SnapWebService.zip ‏14 KB

  • How to display imaged documents on  EP   (.prop filename extension)

    Hello All
    Situation is, the business desires ability to display and optionally print multiple imaged invoices at one time.  These images are stored on the Content Server as ".prop" files.  On R/3 these files are displayed through the SD Viewer.  
    The question is, since these imaged documents are'.prop' files, can the portal retrieve these documents and display and/or print? Can they be converted to .pdf files?  Does anyone have suggestions as to what would be best procedure to accomodate this?
    Can KM be utilized for displaying .prop files or is webdynpro application required?
    Or can anyone direct to some helpful links on this area?

    Hi,
    KM could be used to show files but reading your requirements I would go for Webdynpro development.
    In the WD program you could use all the services you need like ADS for formatting to PDF and even KM services when needed.
    Good Luck,
    Benjamin Houttuin

  • How to display imaged documents on EP (.prop file name extension)

    Hello All
    Situation is, the business desires ability to display and optionally print multiple imaged invoices at one time. These images are stored on the Content Server as ".prop" files. On R/3 these files are displayed through the SD Viewer.
    Since these imaged documents are'.prop' files, I'm wondering 1) if the portal can handle and 2) the best means to accomodate through the portal.
    Can KM be utilized for this or ir webdynpro the best alternative? 
    Can the portal retrieve these documents and display and/or print?
    Can they be converted to .pdf files?
    Does anyone have suggestions as to what would be best procedure to accomodate this?
    Or can anyone direct to some helpful links for this scenario.
    Thanks.

    Hi,
    KM could be used to show files but reading your requirements I would go for Webdynpro development.
    In the WD program you could use all the services you need like ADS for formatting to PDF and even KM services when needed.
    Good Luck,
    Benjamin Houttuin

Maybe you are looking for