get the picture of the ucm directly

Hello Experts,

I use jdev 11.1.1.7

Currently

I have written in the form of component in jsff images

" < af:image id ="i1"source = ' http:// " #{facesContext.externalContext.request.serverName}: /file/ of#{facesContext.externalContext.request.serverPort}#{node.propertyMap ['IMAGE_RGD:Image'] .value}" / >

Images are displayed in the browser

the above image is rendered in the local machine as

" < img id ="pt1:r1:0:i4:49:i2"src =" http:// localhost:80/file/image-file-name-001' > '.

the above image is rendered in the production as

" < img id ="pt1:r1:0:i4:49:i2"src =" http:// 10.0.220.33: 80. /file/image-file-name-001' > '.

Image display, image is retrieved from the Complutense University of MADRID.

Requirement is, instead of giving the source in this way, I want to directly give the path to the image, so that the recovery is faster and I can also be cached images later.

I want to know how can I start with?

Unfortunately I don't think that there is another way to do this, you will need to get the image at least once in the URL then I suppose that your browser saves it cached? I'm not sure. Unless you download images and deploy them with your application that according to me is not an option.

Concerning

Tags: Java

Similar Questions

  • get the IP directly through EL

    Hello

    I use jdeveloper 11.1.1.7.0

    to get the address IP of the server and the client I use below code in java, and these codes work well:

     FacesContext ctx = FacesContext.getCurrentInstance();
     HttpServletRequest request = (HttpServletRequest)ctx.getExternalContext().getRequest();
    
     request.getRemoteAddr();  //client IP address
     request.getLocalAddr();   //server IP address
    
    

    I want to know if there is a way to get the IP directly through EL or not?

    I mean there is no need to use these java codes (do not use #{beanName.methodnName})

    Concerning

    Habib

    Please try:

    #{facesContext.externalContext.request.remoteAddr}

    Thank you

  • Unpacking error when you try to use UTL_COMPRESS. LZ_UNCOMPRESS to get the text XML 'payload' of a BLOB field

    Hi, really appreciate any pointers anyone may have with what I'm trying to do here... the crux of the matter, I have is the following:

    * Try to get the contents of a BLOB column directly in PL/SQL, zipped/compressed

    Uncompressed data are XML... below is an example quite pinked...

    <? XML version = "1.0"? >

    <! DOCTYPE TaskConfiguration >

    < TaskConfiguration >

    < MapKeySet >

    < macro keyboard Type = 'C' >

    namespace < Key > < / key >

    < value > B_O_BrokerChks < / value >

    < / macro keyboard >

    < / MapKeySet >

    < / TaskConfiguration >

    * I learned the information in the table of these pages & used all_directories + a pirated version of proc WRITEBLOBTOFILE (also from here) to get this data in a zip file. That worked fine and I can open the file that results with 7 - zip or explore (how I got the sample above)

    * I tried a few tweaks to the functions provided here to try to get the data directly into the pl/sql (ideally I would like to be able to enter in a type of XMLTYPE data & query only). However, that's where I'm struggling

    * I get the same error as I do with this 1-liner

    SELECT UTL_COMPRESS. LZ_UNCOMPRESS (XML) FROM FooBooBazVendorTab where REFERENCE_ID = 19834

    ORA-29294: A data error occurred during compression or decompression.

    ORA-06512: at "SYS." UTL_SYS_COMPRESS", line 56

    ORA-06512: at "SYS." UTL_SYS_COMPRESS', line 226

    ORA-06512: at "SYS." UTL_COMPRESS", line 89

    29294 00000 - "a data error occurred during compression or decompression."

    * Cause: An error occurred during compression or decompression input source.

    * Action: Verify that the source data is a set of data compressed or invalid.

    Info * @desc to the col de BLOB XML is as follows

    * I also read a ' UTL_COMPRESS. LZ_UNCOMPRESS cannot process the file gzip with FCOMMENT' thread here and I tried the potential workaround here who is trying to manipulate the content of the blob to remove the FCOMMENT... but nothing helps. I must say that I am not sure that it's actually my problem.

    Details on the Zip file I can glean from 7 - Zip are as follows...

    * Any ideas please? (If Oracle decompress may have a problem handling the XML data itself... with my way of thinking on the FCOMMENT being a bit of a furphy?)

    * Don't know if the zip file hexview can help, but just in case where is >

    I would be very grateful for any help you might be able to give me this.

    Rgds Neil

    UTL_COMPRESS use of LZ compression, which is a version less compression compared to normal ZIP files (that use LZW, often with additional ' Deflate' or other methods).

    Anton Scheffer (member of the these for one) wrote a package to compress and decompress found related to this article on his blog:

    Analysis of a Microsoft Word docx and unpack zipfiles, PL/SQL - Blog of AMIS

  • Unable to get the widget to open dreamweaver cs6 mac

    Mac S 10.6.8 (snow leopard)

    I am unable to load widgets since dreamweaver CS6. Able to sign into Adobe ID, but will not charge.

    Message: "could not feed widget. Make sure that you are connected to the internet. unknown error. »

    Firefox, safari, and google chrome; all erased and all configured to accept cookies.

    checked and repaired disk permissions.

    have you tried signing in before trying to connect through dreamweaver.

    I need to download something?

    No, browser widgets is obsolete and the site who populated app in the browser is no more.

    You can try to get the widgets directly from third-party developers, or to the search page modules Adobe here: https://creative.adobe.com/addons

  • Get the value of the field that is formatted

    I have a few fields in the format number with 1 or 2 decimal places. I use these values in a string that is concatenated in another field, and I want to use the number formatted in this calculation. Using valeur.champ or field.valueAsString just gets the value as written is "412" instead of "412.0'.»

    Y at - it an easy way to get the value directly as it is formatted, or do I need to replicate the setting in shape when I am concatenating the string?

    There is no way easy in general. The routine of formatting for numbers uses the util.printf method, so for example you gave, it is easy to reproduce.

  • Get the userid of the ObSSOCookie.

    Hi all
    We have protected our request with webgate.
    After the password and username production ObSSOCookie which is defined in the browser.
    Can any body provide me some api which will facilitate to me to get the user name in the ObSSOCookie.

    Thank you
    Arun.

    Yes, by using the SDK to access server, you can get the user DN for the user whose ObSSOCookie is generated. You can not get the user directly using an API ID, but the use of API functions, you can get the unique name, from there, you can get the user ID.

    Start by creating a portal to the OAM administration console. Then install and configure the Access Server SDK. Then, you will need to write the following code (given psudocode). This will accomplish what you're looking for. The code can be written in C, C++ or Java.

    Initialize the Asdk (ObConfig::initiate(asdk_path))
    Then create obUserSession object using the obssocookie as an argument to the ctor value
    obUserSessionObj.getUserIdentity - this will give you the UtilisateurDN.
    Close the connection Asdk.

    I hope this helps. Let us know.

  • How to get the jar file without knowing his name and any class on the inside?

    Hello, everyone!

    I would like to know if there is a way to get a reference programmatically in the original container without knowing his name and any class it contains. I mean by "initial pot" the pot that was called in the prompt, like this:
    java -jar jarfile.jar
    or in another way, in a graphics system. To be honest, what I really want is to get a reference to the manifest of the jar, but I know that if I can get a reference to the jar I can get a reference to its manifest file. Or if you know a way to get the manifest directly, it would also be useful. So, is there a way to do this?

    Thank you.

    Marcos

    Ah, so you want to find the calling class and get its source code.

    I managed to get the class calling on occasion, but this is probably a somewhat fragile solution. You must extend SecurityManager because getClassContext() is a protected method.

        private static class CallerFetch extends SecurityManager {
    
            public Class getCallerClass() {
                return getClassContext()[3];
            }
        }
        private static CallerFetch callerFetch =
                new CallerFetch();
    
        /**
         * Find the class of the code which called the
         * method that invokes this method.
         * @return The class of the caller's caller
         */
        public static Class getCallerClass() {
            return callerFetch.getCallerClass();
        }
    
  • Huawei P9 - I have many issues with getting my pictures from the phone to my Imac

    Huawei P9 - I have many issues with getting my pictures from the phone to iphoto on my Mac.

    Before the summer I bought a Huawei P9 phone, I can easily see the photos on the phone - I can't just them on my mac.  When I connect via a USB cable, it refuses my permissions.

    I try to use my Google account to view on the Mac and move the iPhoto - I can't work either! I can see them, I can't move them!

    I'm pulling my hair out and I have enough to do with! Help, please...

    Jim Hosking

    You need the phone provider support - there is a problem with the way their phone works and how to use it and has nothing to do with the Photos or iPhoto - if pictures is consistent with standards of good Photos and iPhoto won't work with it

    You may need special third party software for your phone load in Photos or iPhoto

    LN

  • How can I replace the mime types of server, always get the mp3, rar, sid, bin files directly in the dialog box "where do you want to save this file?"

    I used to be able to click on MP3 files, the way back when, and Firefox asks where I wanted to save. Nowadays, it opens a new tab with a flash drive.
    By clicking on the "unknown" files, like .sid, .prg, .zip, .rar is ' this is a BIN file. [Cancel] [Save] ». It does not give me a check box for "always do this".
    I would like that option to edit so that certain types of files, such as PDF, regardless of mimetype, always get opened in a new tab if you click. Also some types of files, based on the extension, always go directly to the dialog box "Where you want to save the file?", without worrying if there is a viewer or a builtin player or not. In my Firefox (41.0.1 14.04LTS 32-bit Ubuntu) I have never the choice "do this for these files always" more.
    Googling led me to delete my file mimeTypes.rdf and since file extensions can even "well known", such as .zip, are treated as BIN files and I get the box Cancel-or-Save for those too - again without the choice of "always save the BIN files.

    These files are send as Content-Type: application/octet-stream and Content-Disposition: attachment;
    To send files in this way, you cannot save an automatic action.
    You can see that in network monitor.

    Content-Disposition: attachment; filename="TURRICAN_AMIGA_PORT.sid";
    Content-Type: application/octet-stream
    
  • When I right click instead of the menu, I get a picture of a Web site I visit. The same list of links sugested (sharpen by typing an address).

    Right click and I get a picture of the entire window (tabs above, the entire site). In the upper right corner of this photo (photo is inside this menu after right-clicking straight or suggestions) I have my standard menu. When I try to point sth (on the menu) it starts flashing (picture, menu, picture...). It drives me crazy. I even tried system reinstall and it happens again.

    I'm working on laptop. It is not a beast but not some junk too.

    Any ideas?

    P.S, English is not my first language so I tried to make everything as clear as possible. If sth does not know just let me know.

    P.s2 I could use some of the built in dictionary to avoid misspellings, but I can't.

    Hello montone, maybe it's a problem with hardware acceleration - try updating your graphic driver, or in case this does not solve the problem, or there is no new version available at the time, disable hardware acceleration in firefox > options > advanced > General.

  • How to turn the camera off when I get the picture?

    How to turn the camera off when I get the picture?

    How to turn the camera off when I get the photo I do my iphone 6 mute and when I get the picture give sound

    Some countries do not allow phones take pictures of silent.  iPhones sold in these countries do not allow the sound picture to shut up.

  • After that I closed the lid on my laptop, when I reopen it, I have to keep moving the lid until I can get a picture. What could be the problem and how to fix?

    After that I closed the lid on my laptop, when I reopen it, I have to keep moving the lid until I can get a picture.  What could be the problem and how to fix?

    Hello

    Looks like a loose connector or a short circuit in the video cable. Check with a real
    store computer (one that works on computers cell phones internal ASUStek) or ASUStek
    Support, their documentation and online in their forums.

    Not a maintainable question by the user.

    ASUStek support
    http://support.ASUS.com/

    ASUStek Forums
    http://VIP.ASUS.com/forum/default.aspx?SLanguage=en-us

    ASUStek drivers
    http://support.ASUS.com/download/download.aspx?SLanguage=en-us

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • my computer is connected to a new projector with a DVI and HDMI cable, and return the currency I installed correctly but I don't get a picture on the projector

    I connected my computer to a new projector with a DVI and HDMI cable, and return the currency I installed correctly but I don't get a picture of the projector, need HELP.

    Hi Bill,

    Thanks for asking this question to Microsoft Community.

    I will definitely help you to set up the projector, but before starting, I would ask you some troubleshooting questions.

    What version of the Windows operating system is installed on the computer? Do you get any error messages? Have you done a recent software or changes to the material on the computer?

    Here is a link that provides information on connecting to a projector. Go through it and check if it helps.

    Hope this information is useful and provide us with more information for further assistance. We will be happy to help you.

  • When sending an Email containing pictures, I get the Message "one or more of the images could not be sent" in Windows Live Mail.

    When sending an Email containing pictures, I get the Message "one or more of the images could not be transmitted. When I send this message to my address, I see the little red X in place of the image. How can I fix it?

    original title: Live Mail

    Hi donabell,.

    Thanks for posting your question in the Microsoft answers Site Feedback forum. Your question it will be better answered by the experts in the Windows Live Solution Center. Please repost your question here.

  • When trying to start the disk check procedure, I get the answer, "cannot open volume for direct access. How can I fix?

    I get the above answer everytime I turn on the computer. (This is with AutoCorrect blocks checked). If I leave blocks unchecked, it follows a procedure 3 pass without rebooting and does not produce a result.

    * original title - to try to start the procedure of checking disk I get the answer, "cannot open volume for direct access. How can I fix? I ran the GET Microsoft virus check tnd an own result.*

    The application-specific permission settings do not authorization for the application server COM with the CLSID
    {DCBCA92E-7DBE-4EDA-8B7B-3AAEA4DD412B}
    the user NT AUTHORITY\SYSTEM SID (S-1-5-18). This security permission can be modified using the Component Services administrative tool.

    In the opposite case

    http://blog.ray1.NET/2008/01/WinXP-SP3-DCOM-system-error-dcbca92e.html

    http://TechNet.Microsoft.com/en-us/network/bb545879

    http://www.blackviper.com/wiki/Network_Access_Protection_Agent

Maybe you are looking for