Displaying img from content server thr' content presenter display templates

Hi,
I have created a static list element definition which contains three elements i.e. plaintext, image and WYSIWYG.
I have accessed the plaintext and WYSIWYG elements on Content presenter template using
<af:iterator var="items" value="#{node.propertyMap['ARTICLE_RGD:chapters'].nestedProperties}">
<af:outputText id="ot1" value='#{items[0].value}'/>
<af:outputText id="ot3" value="#{items[2].value}"/>
</af:iterator>
But may i know how to access the image element on the static list. I tried this with <af:image> tag
<af:image styleClass="test" source="#{items[1].url}" shortDesc="Test" id="idtest" inlineStyle="float:left;"/>
As the source tag of af:image tag requires an uri, and as we are passing the url, the image is not getting rendered.
As there is no uri property on the node attribute, Kindly help to fetch the image element from CS.
Not only in static list, may i know how to render the image element in adf from CS
Thanks
S. Muthukumaran

Hi,
I have created a static list element definition which contains three elements i.e. plaintext, image and WYSIWYG.
I have accessed the plaintext and WYSIWYG elements on Content presenter template using
<af:iterator var="items" value="#{node.propertyMap['ARTICLE_RGD:chapters'].nestedProperties}">
<af:outputText id="ot1" value='#{items[0].value}'/>
<af:outputText id="ot3" value="#{items[2].value}"/>
</af:iterator>
But may i know how to access the image element on the static list. I tried this with <af:image> tag
<af:image styleClass="test" source="#{items[1].url}" shortDesc="Test" id="idtest" inlineStyle="float:left;"/>
As the source tag of af:image tag requires an uri, and as we are passing the url, the image is not getting rendered.
As there is no uri property on the node attribute, Kindly help to fetch the image element from CS.
Not only in static list, may i know how to render the image element in adf from CS
Thanks
S. Muthukumaran

Similar Messages

  • How to read bytes(image) from a server ?how to display image after read byt

    How to read bytes(image) from a server ?how to display image after reading bytes?
    i have tried coding tis , but i couldnt get the image to be display:
    BufferedInputStream in1=new BufferedInputStream(kkSocket.getInputStream());
    int length1;
    byte [] data=new byte[1048576];
    if((length1=in1.read(data))!=-1){
    System.out.println("???");
    }System.out.println("length "+length1);
    Integer inter=new Integer(length1);
    byte d=inter.byteValue();

    didn't I tell you about using javax.imageio.ImageIO.read(InputStream) in another thread?

  • Fetch XML from Content server to Portlet and display as HTML

    Hi,
    I want to fetch the XML from the content server and display that XML in the Weblogic Portlet as HTML.
    The main reason is that data will be contributed by the users in UCM and then I had to get that data from content server and display in portlet
    Please Help........
    Thanks,
    Vinod

    Vinod:
    Probably what you're looking for is to bring the content over using the UCM SPI adapter for WLP's VCR:
    [http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/ucm_adapter/intro.html]
    And then to display the content using a custom template using Content Presenter:
    [http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/cm/displaytemplatesCM.html]
    [http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/portlets/development.html]
    When you say you want to fetch xml, is that because it's a contributor data file? You can either read the property values directly from the VCR, or use the info you get from the node (such as dDocName) to then use a UCM/WCM web service to retrieve formatted content and put it in an iframe. There are a lot of ways to go in formatting the data.
    You can even add edit capabilities to your Presenter template by calling the 'edit data file' web service of WCM.

  • Content Server 6.40 Presents a Save As dialog for ContentServer.dll file

    hi All
    we have installed successfully the content server 6.40 on a windows 2008 with iis 7 environment. The installation wen successfully with no errors. however when we run a test by calling the URL http://<server>:<port>/ContentServer/ContentServer.dll?serverInfo URL, instead of getting a response, we are getting a save as file dialog to save the dll file.   Also, after the installation, even with the install website tick checked, the website was not installed. we had to do the installation of the website manually for the port.
    With content server 620 on windows 2000 this was never the case
    if anywone has an idea on how to resolve the issue, please advice
    Regards
    Ronny

    GOT the Solution
    to anyone else who could be going through the same issue, see if the solution below solves your issue
    The website should get created if all the roles in IIS 7.0 are installed. Therefore, please try to install the IIS 7.0 by selecting
    all the roles followed by installation of the SAP Content Server. By doing so, websites should be created automatically.
    In the IIS 7.0, all the roles are not selected during the installation by default. Please make sure all the below roles are included and IIS 7.0 is installed, as per the installation manual for the Content Server on Windows 2008:
    Roles needed in IIS 7.0.
    Common HTTP Features
    Static Content
    Default Document
    Directory Browsing
    HTTP Errors
    HTTP Redirection
    Application Development
    ISAPI Extensions
    ISAPI Filters
    Health and Diagnostics
    HTTP Logging
    Logging Tools
    Request Monitor
    Tracing
    Custom Logging
    ODBC Logging
    Security
    Basic Authentication
    Windows Authentication
    Request Filtering
    Note : Anonymous Authentication should be enabled which is done by
    default.
    Performance
    Static content Compression
    Dynamic Content Compression
    Management Tools
    IIS Management Console
    IIS Management Scripts and Tools
    Management Service
    IIS 6 Management Compatibility
    IIS 6 Metabase compatibility
    IIS 6 WMI Compatibility
    IIS 6 Scripting Tools
    IIS 6 Management Console
    I hope it helps someone!

  • Problem with pdf display downloaded from application server

    Hi all,
    I have a problem with displaying pdf downloaded from application server (saved in BINARY MODE).
    I am getting the pdf output of adobe form in FPFORMOUTPUT-PDF as rawstring back to my program and then converting that rawstring into binary form using the function module SCMS_BINARY_TO_STRING.
    Now, when I export the data to presentation server directly using cl_gui_frontend_services=>gui_download, the pdf is downloaded properly.
    However, when I save the data to application server file by looping at the internal table obtained from SCMS_XSTRING_TO_BINARY and using TRANSFER, and subsequently downloading the file in "unconverted format" from AL11 to my desktop, I am getting a "blank" pdf file (with the same number of pages as the one downloaded using gui_download).
    I have tried different encodings during download but in those cases i get corrupted pdf message. only the default option of INTIAL value seems to work.
    I am forced to believe that there is a problem in my code which saves the data to app server but I cant find any solution that is logical. Any solution to this would be greatly appreciated.
    Regards,
    Sasi
    Edited by: Sasi Upadrasta on Sep 29, 2010 7:55 PM

    used a program to read the file from appl server and then downloading it to desktop.

  • Content Server - get content of document being checked in

    Hi,
    Is is possible to get the content of the document being checked-in via Java? Assuming I want to have a component which performs some action on the document being checked in, before this document is checked in. Is there some way to read the content of the document?

    Hi Jiri,
    Thanks again for pointing me in the right direction. From what I understand I just need to get the path to the document and then open it via Java. I believe sth like this does the trick:
    String docPath = binder.get("primaryFile:path");
    From my understanding there is this "vault" folder which holds the content server's files, revisions, temp files etc... Using the above code should work ok, but I understood that the CS can be told to save its files into some data base instead of the "vault" folder, in which case the above code won't be useful...
    I assume in this case reading the document is done in some other way...
    So, should I conclude that there is no general/abstract way of reading the document being checked-in which doesn't take into consideration the underlying structure which keeps the CS's files(vault or DB)?
    Thanks,
    V

  • Checkin Document to Content Server through Content Repository

    Dear All,
    When I try to check in Document from ECC 5.0 to the content Server through repository(http storage) throwing error can't checkin.
    when I try to serch SMP notes most of the notes saying thats the progam error and for 6.40 we need to edit function madule.
    Please let me know if any one has got same error and let me know if any one has implemented this and how
    FYI: we are done with all rfc related issues like saphttp,saphttpa,sapftp and sapftpa etc..
    please advice me
    thanks
    Subrahmanyeswara

    Hi
    I have done all those
    FYI: with out repository & catageroy its not posible please read my post clearly
    When i try to add doc to the repository which is created for content server (catagery) then i am getting check in doc error

  • Difference Between "Content Server" and "Content Services"

    Can someone tell me the difference between "Oracle Content Server" and "Oracle Content Services"? From my research, I get the sense that
    these are different products (and Oracle Content Services seems like it's an obsolete one), but I would like some confirmation.
    My apologies for the uber-newbie question :)

    Content Services is what you had with Content DB, Oracles old product.
    Content Server is the core engine of the UCM product, formerly Stellent Content Server.

  • Using flash to display images from sql server or file system

    hello,
    what methods and parameters of the urlloader class we have to use to display images in a flash player if possible..
    also movie should update everytime a new image is added to a database or file
    the images can either be in a file system or in a sql database (if possible)
    does flash comes with an object of this type or we have to create it.
    regards,

    i responded to your duplicate message 4 days ago:
    is it possible to insert and retrieve images from sql server using actionscript.
    you'll need server-side script to query your database and you can use the flash urlloader class to call your script.
    also  is it possible to create a flash scrolling gallery based on images  stored in a database and everytime an image is added it is displayed in  the gallery.
    load the data using the urlloader class and  then load the images.  periodically query the database for new images if  there's no direct way for flash to know a new image was added.

  • Display Document from BI Server in Crystal Report

    Hi all,
    I accessed BI Query from BI server in Crystal Report. We can upload any comments or documents to the query. I want to display the document and comments in Crystal Report from the BI server.
    Is it possibel? If possible how can i do this?
    Thanks & Regards,
    Hemalatha J

    As I see there was no response on these issue although it is marked as answered. I'll give a hint for the ones that might want to try this.
    One could extract the metadata and documents from the tables names to be found in the tables SDOKLOTAB and SDOKPHTAB (as an example, for InfoObject documentation we have the tables BDSLOIO8, BDSLOIOT8, BDSLOPR8, BDSPHIO8 and BDSPHF8) or one could export the metadata from the BI repository (though, this is a manual approach).
    Edited by: marius.grunca on Apr 27, 2009 5:58 PM

  • Display image from windows server

    Hello,
    I have to display a image logo.gif on my page.
    the path of the image is C:\img
    <img src="C:\img\logo.gif" > does not work
    Thank you in advance
    Fay

    Hello,
    I have to display a image logo.gif on my page.
    the path of the image is C:\img
    <img src="C:\img\logo.gif" > does not work
    Thank you in advance
    FayIs the c:\img on your server or your workstation? if the logo is on the server, you MIGHT want to move or copy it to the image directory setup in APEX..
    Then you can reference it easier..
    Thank you,
    Tony Miller
    Webster, TX

  • What can I do when web pages with scripting display ok from a server but not locally?

    I have html and java script in the same folder path, both on a server and locally. The pages display correctly when accessed from the server, but not when accessed locally. Is there a change I can make to Firefox to solve this problem?

    An address starting with c: wouldn't be any kind of domain name. C: is the drive lettering system DOS and and later uses. By default, A: and B: are reserved for your first and second floppy disk drive. All hard drives are then named C: through Z:, if you have that many. C: is normally your startup disk.
    Anyway, their PDF file is incorrectly linked to a file directly on the C: drive of someone's computer. It's not going to work no matter what you do.

  • Content Server - Delete Item Presentation Template code?

    I know the code to create a content item:<pcs:value expr='pcs_location'></pcs:value>/published_tools/content_item.jsp?fid=" + detFolderId + "&det=(data entry template name)
    And to edit a content item:<pcs:value expr='pcs_location'></pcs:value>/published_tools/content_item.jsp?ciid=<pcs:value expr='item.pcs_id'></pcs:value>
    But what about deleting a content item?
    Thanks! Tim Halbach Stiefel Laboratories

    I was wondering, did you find out if this is possible. We are trying to do this. as well. We have been able to setup the Editing from the Portlet level, but haven't found a way to handle deletes.

  • Generate image with CFIMAGE - but need to use img tag to serve the content

    I create a new image with cfimage, that already works without
    any problems.
    But instead of using the action="writetobrowser" I need to be
    able to use the script inside a img tag:
    Example: <img
    src="myscript.cfm?somedata=iwanttheimagetocreate>
    I found one webpage that deals with that problem (
    http://www.webdevelopernews.com/2007/09/14/serving-up-cfimages-via-image-tags/)
    but the image served to the browser, when using the code below, is
    of a very low quality and another point is that you can't serve
    .gif's to the browser.
    <cfcontent type="image/jpg"
    variable="#ImageGetBlob(backgroundimage)#">
    Any suggestions/solutions?
    Thanks,
    Phil

    In that entry Raymond mentions:
    "The WriteToBrowser action actually generates HTML that points
    to a ‘magic’ URL to serve the image.". ie <img
    src="/CFFileServlet/_cf_image/_cfimg-12345036853711072.PNG" alt=""
    />
    Perhaps you could create a function that captures the
    generated html by using <cfsavecontent>.
    <cfsavecontent variable="imageTagHTML">
    <cfimage action="writeToBrower" ..>
    </cfsavecontent>
    Then uses a regular expression to extract and return the url
    portion only. ie
    "/CFFileServlet/_cf_image/_cfimg-12345036853711072.PNG"
    <cfset ExtractedURLHere = SomeFunction(arguments...)>
    <cfoutput><img
    src="#ExtractedURLHere#"></cfoutput>
    Though you could also use the entire html string directly
    <cfoutput>#imageTagHTML#</cfoutput>

  • Windows 8.1 Photos app doesn't display photos from Home Server V1 network drive

    I have my photos stored on a Home Server V1 network drive (\\homeserver\photos) and I have added the drive to the Pictures library. When I open the library in desktop Explorer I can see all the photos
    and my Photos live tile shows photos from the network drive. When I open the Photos app I can see all the folders. However, when I open a folder I get the message 'There are no files or folders in this view.'
    Any help is appreciated.
    I am running Windows 8.1 with the latest updates.

    Adding another voice to this - I hit exactly the same issue myself yesterday.  I haven't got the device with me now, but as the original poster says:
    I have \\server\photos mapped to my p:\ drive in Windows 8.1, and this is in my pictures library.  
    The p:\ drive has many (100s) subfolders, which I can browse using Windows explorer and desktop apps like Picasa.
    When I start the "photos" app, I see all my folders (each with a thumbnail picture), but when I click into a folder I just get the "There are no files or folders in this view".
    It's probably worth saying that as this is Home Server v1, I had a bit of fun and games to get permissions right to access the share:
    I log into Windows 8.1 (on a Surface Pro 3) using my Microsoft account
    I've mapped the home server photo drive to "P:\" on my SP3; when I did this I provided the admin user ID and password for the home server and told windows to remember the credentials.
    I added p:\ to my pictures library in Windows 8.1 on the SP3.
    FWIW - I use a similar mechanism to add music from my home server to my music library, but the XBox Music app seems to be able to see individual tracks OK.
    Any ideas?

Maybe you are looking for