How to cache images retrieved from MDM on Java WebAS

Hello Colleagues,
We have a scenario where we are trying to retrieve image records from the MDM using Java APis. Instead of hitting the DB everytime, is there a way to implement caching? For instance, is it possible to cache the images on the java WebAS and return the path of the images instead of returning the byte stream everytime?
Thanks and Regards,
Nisha
Edited by: Nisha NC on Sep 1, 2009 7:35 AM

Hi Nisha,
You can use the Class ObjectCache from the Java API.
For more information please refer to:
http://help.sap.com/javadocs/MDM71/current/API/index.html
Hope this helps,
Idan

Similar Messages

  • How to retrieve data from MDM using java API

    hi experts
    Please explain me the step by step procedure
    how to retrieve data from MDM using java API
    and please tell me what are the
    important classes and packages in MDM Java API
    thanks
    ramu

    Hi Ramchandra,
    You can refer to following links
    MDM Java API-pdf
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2d18d355-0601-0010-fdbb-d8b143420f49
    webinr of java API
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/89243c32-0601-0010-559d-80d5b0884d67
    Following Fourm Threads will also help.
    Java API
    Java API
    Re: usage of  java API ,
    Matching Record
    Need Java API for Matching Record
    Thanks and Regards,
    Shruti.
    Edited by: Shruti Shah on Jul 16, 2008 12:35 PM

  • Syndicate Images(name) from MDM

    Hi All,
    as syndication of image file is not possible from MDM, and we can only syndicate image names from MDM. Say we have a record in MDM and an image(ABC.jpg) attached to it. Now we edit that record and add another image(DEF.jpg) to it. Now if we want to syndicate the record only with the new image(DEF.jpg), MDM doesn't allow this feature as an out of box functionality.
    Is it possible to achieve this using JAVA API's and how, or is there any workaround available for this, on which some one has worked.
    Regards
    Manish

    Hi,
    Try this.
    Create a time stamp field in the repository and specify Image field as selected field property for time stamp. So this field will hold time when image is changed for the record. Now in syndicator use this time stamp field and specify filter to select all the records which have image changed after last syndicatin date (you need to know last syndication date in this case, which is easy) for record selection . In this way you can acheive your requirement. But you may face problem if Image Field is multivalued. Because in that case it will syndicate names of all the images, and not only new images names.
    Regards,
    SHiv

  • Where are APEX images retrieved from in an n-tiered environmen?

    Oracle XE DB 11gR2
    Oracle APEX 4.1.1
    Glassfish 3.1.2
    Red Hat Linux 5.8
    ===========
    I notice when using Glassfish as part of my APEX environment I am required to copy the images to an /i directory on the Glassfish server under the Glassfish domain.
    The question arises --> When APEX needs to render an image, is the image retrieved from the database/database server or from the Glassfish web server?
    Thank you.

    >
    Please update your forum profile with a real handle instead of "user601798".
    Oracle XE DB 11gR2
    Oracle APEX 4.1.1
    Glassfish 3.1.2
    Red Hat Linux 5.8
    ===========
    I notice when using Glassfish as part of my APEX environment I am required to copy the images to an /i directory on the Glassfish server under the Glassfish domain.
    The question arises --> When APEX needs to render an image, is the image retrieved from the database/database server or from the Glassfish web server?The answer (as usual) is "It depends".
    If you're using Glassfish and the APEX Listener (or OHS) then images referenced using <tt>/i/</tt> / <tt>#IMAGE_PREFIX#</tt> are stored on and retrieved from the web server file system. If using EPG then they're stored on and retrieved from the database using the XMLDB repository.
    If the image is referenced using <tt>#WORKSPACE_IMAGES#</tt>, <tt>#APP_IMAGES#</tt>, or declarative BLOBs then they're stored on and retrieved from the database.

  • How message will be retrieved from the website and it send back to the mobi

    how message will be retrieved from the website and it send back to the mobile ?
    please give documents and sample code
    Message was edited by:
    kannankalli

    So as your query :
    The data will be fetched from website and it reach to
    mobileimplicates many possibilities.
    Well if u just want to view the website contents on your mobile then open the web browser in your mobile and open the desired web site, or u can use opera mini for this if your phone supports this.
    And if u want to fetch the contents of some site to your application, use GCF api.
    As a starter hope this will help u : http://www-128.ibm.com/developerworks/library/j-j2me4/#N10102

  • How to create table in interactive form via Java Web Dynpro

    Hi,
    How to create table in interactive form via Java Web Dynpro ?
    Any online tutorial / example ?
    Thank you.
    Regards,
    Eric

    Hi Eric,
    Just choose the UI element Table from Form Library and drag and drop it on the form. now choose the no. of rows and columns and other settings you want about table from the wizard initiated through this process. This all is what you have to do to create the table. Now to bind it to the fields of the data source bind the individual colums to individual attributes of the node in the datasource.
    Hope it will solve your query.
    Regards,
    Vaibhav Tiwari.

  • Extracting image variants for web index from MDM via Java API

    Hi There, we are currently using an open source search engine to crawl the MDM database and build indexes for our webstores nightly. In this process, we have an image extraction method using the MDM java API's. Can someone please tell me how to call an image variant into this process rather than the 'original image' stored in MDM? I've created a variant that will optimise for web conditions and we need to call this one into the webstore, not the originals that are sometimes huuuuge...

    Hi Adam,
    From MDM Documentation (can be found here [http://help.sap.com/saphelp_nwmdm71/helpdata/en/49/0505fba870404ce10000000a42189b/frameset.htm]):
    Retrieving Image Variants
    To retrieve binary data for image variants carry out these steps:
           1.      Retrieve all image variants using the RetrieveImageVariantsCommand class.
           2.      Retrieve the Image BLOB whose variants you want to get, (see Retrieving BLOB Records above).
           3.      Retrieve the BLOB for the specific image variant using the RetrieveBlobCommand.
    Hope this information helps,
    Idan

  • How to hide image directory from search engines?

    Hi,
    This is more an SEO question than DW but I can't think who else to ask and I suspect this crowd will know the answer...
    I feel like this is a new thing....my image directory is showing up in google for a site that isn't even live yet.  The index page is just an image.  But I've got dozens of pages on my server and hundreds of photos in an image directory for the images on those dozens of pages.  But the current temporary, static index page doesn't have any links to the interior pages yet.  I dont remember ever having this happen where (1) the pages that are on my server are being indexed even though there isn't an index page with links to it and (2) I've never seen my image directory show up on Google! I sure don't want that. It's all my original psd files with layers etc.
    Is this a "no follow" kind of issue? Is this a new issues? How do I prevent my image directory from showing up in google? It was bizarre...I did a search in google for a term and it brought up my own image directory with an image named that name!! I almost had a heart attack.
    Anyone have a favorite SEO forum to post this in as well?
    Any help appreciated.
    Laura

    As always, you are such a reliable source of help! :-)
    That robots.txt you mentioned...do what with that?  I mean, how does that tell it "dont index the images"? For that matter, there are tons of pages on the server I don't want being indexed yet either because they are half baked for later development.
    Thanks!
    Create the file, and upload it to the root directory.  It's as simple as that.  But you'll have to read the details on the google hits to see the exact syntax of the exclusions.
    Now - here's why this is happening....
    Somewhere, google has found a link to this URL -
    http://bluehippotravel.com/photos/destinations/TH/
    The bluehippotravel host has NOT disabled directory browsing.  When you browse to that URL, instead of getting a FORBIDDEN message like you should, you get a page listing the contents of that directory.  Google is indexing that page.  Ask your host to turn off directory browsing for that folder.

  • How to Insert image file from fileChooser to a tabbedPane?

    Hi,
    Currently, i have encounted a problem halfway through my project. That is how do i insert images into a tabbedPane after selecting a image file from the fileChooser?
    Do anyone has any idea of how to solve the above problem?
    Thanks!!

    I would put the image in a JLabel and put the JLabel in the tabbed pane.

  • Data retrieval from MDM 5.5 using Java API

    Hi,
    Does anyone have a sample Java code snippet that can be called via XI to retrieve data from a repository in MDM 5.5 ?
    Cheers
    Colin.

    Colin,
    What exactly do you want to do?
    If you want to retrieve data from MDM, you need to have Java application call the API's provided.
    Where is XI coming into picture?
    Other way of doing it is to develop a web service and call that via XI and send the data.
    Here is quick snippet to get some data.
    Sample code for FreeForm search:
    SearchParameters sparam = search.GetParameters ();
    FreeFormTableParameter fftParam =
    sparam.NewFreeFormTableParameter(ProductsTable);
    FreeFormParameterField ffParamField =
    fftParam.GetFields().New(PartNumberField);
    ffParamField.GetValues().NewString(
    partNoValue,FreeFormParameter.PrefixSearchType);
    search.Add(fftParam);
    Regards,
    Ravi
    Note : Please reward the posts that help you.

  • How to save image catch from USB camera to database ?

    Hi guys.
    I needed help on IMAQdx tools. But i dont know how to save image that catch from USB camera to database.

    So you can acquire the image OK?
    And you want to save it to a SQL database?
    See here:
    http://zone.ni.com/devzone/cda/epd/p/id/5210

  • How to transfer image files from nikon d800 to ipad4?

    How to transfer jpeg image files from nikon d800 to IPad 4?

    Are you having a problem? What have you tried? Do you have Apple's camera connection kit?
    With the CCK, you can connect the camera or the camera's SD card.
    iPad iOS 6 Update - Camera Connection Kit Fix
    http://www.georgewheelhouse.com/blog/2012/10/ipad-ios-6-update---camera-connecti on-kit-fix
     Cheers, Tom

  • How to remove image files from audio files

    i dont understand enough about how itunes worked...So my problem is, when i would add album art to a song, i would copy and past to the artwork box on the song. When i would find a better image, i would just past over the last one, not realizing that it was actually adding another image. This form of Copy/past(as i understand) saves the image to the audio file. *My question:* how do i remove the image files from the audio files...?

    Right click on the file you want to remove the artwork from, choose Get Info then the Artwork tab, click on the image and press the delete button then OK. To remove from multiple items, highlight the adjacent tracks in your selection (click on the first in the list, hold down the shift key and click on the last), right click and choose Get Info, choose yes when you are asked if you want to edit multiple items, tick the box beside the small empty artwork window about halfway down on the right. (if the songs aren't adjacent to each other but spread through out the playlist or library CTRL & Click on each of the songs you want to highlight)

  • How to Call Image Viewer from Form application

    Hi,
    how to call Image viewer using host command on oracle form 6i.
    i trying using host command on local/client application .. and it is working ...
    but when i try on server application (EBS - UNIX) it does not working ...
    thanks ..
    regards,
    safar

    Are you using Forms 6i in client/server mode or web deployed? I'm not sure what you mean by 'try on server application"
    Remember that when using a web deployed architecture, a host command will execute the command on the Forms application server, NOT on the client.
    To execute host commands on the client you would have to use WebUtil, but that's not available for Forms 6i. Perhaps there are PJC's out there that can do it for you, but I don't want to get in all those details without me knowing if it is relevant for you.

  • How to remove these items from Infopath ribbon in web enable form?

    Hi All,
    I am using custom list form customized in infopath 2013, I want to remove these items from ribbon :
    I tried with Infopath  "form Options" like:
    But still showing "Picture-1" options. How to remove those items from ribbob?

    Hi,
    I understand that in the list view web part, you wanted to remove the ribbon of InfoPath form.
    There are to mothed to achieve it:
    Open the list, click new item, edit page, edit web part, unclick the ‘Show InfoPath Ribbon or toolbar’ box, the new item page will remove the riibon.  Then when you open the page which has the list view web part, the ribbon of InfoPath form will also
    be removed.
    Open the page which has the list view web part, edit page, edit the list view web part, unclick the ‘Show InfoPath Ribbon or toolbar’ box, the ribbon of InfoPath form in the web part will be removed. Then when you open the list, the ribbon of InfoPath form
    will also be removed.
    The two method edit the same page newifs.aspx, so the list and the webpart will be modified in the same time.
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

Maybe you are looking for