Displaying images in VBOX mxml element

hi,
i am new to flex.i am using flex builder 3.
i want to disply sime images in a VBOX element. i have image URLs and image names with me in an arraycollection. i should disply the images side by side and VBOX should have scroll bar.
thanks
sankar

If you want the images side-by-side, don't you want an HBox? Anyway, here's some code to answer your question.
The scrollbar won't display unless the images do not display within the HBox width. You can force the scrollbar to display always by setting the HBox horizontalScrollPolicy property to "on".
You might want to use a HorizontalList control instead.
Below I have hard coded indexes and also used a repeater in the HBox.
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
  verticalGap="30">
  <mx:Script><![CDATA[
    import mx.collections.ArrayCollection;
    [Bindable] private var imgs:ArrayCollection = new ArrayCollection([
      {name: "red", path: "images/red.png"},
      {name: "green", path: "images/green.png"},
      {name: "blue", path: "images/blue.png"}
  ]]></mx:Script>
  <mx:HBox>
    <mx:Image source="{imgs.getItemAt(0).path}"/>
    <mx:Image source="{imgs.getItemAt(1).path}"/>
    <mx:Image source="{imgs.getItemAt(2).path}"/>
  </mx:HBox>
  <mx:HBox horizontalScrollPolicy="on">
    <mx:Image source="{imgs.getItemAt(0).path}"/>
    <mx:Image source="{imgs.getItemAt(1).path}"/>
    <mx:Image source="{imgs.getItemAt(2).path}"/>
  </mx:HBox>
  <mx:HBox>
    <mx:Repeater id="rp" dataProvider="{imgs}">
      <mx:Image source="{rp.currentItem.path}"/>
    </mx:Repeater>
  </mx:HBox>
  <mx:HorizontalList dataProvider="{imgs}" columnCount="3">
    <mx:itemRenderer>
      <mx:Component>
        <mx:Image source="{data.path}"/>
      </mx:Component>
    </mx:itemRenderer>
  </mx:HorizontalList>
</mx:Application>
If this post answers your question or helps, please mark it as such. Thanks!
http://www.chikaradev.com
Adobe Flex Development and Support Services

Similar Messages

  • Displaying image, stored in KM, using HTMLB image UI Element...

    Hello all,
    I want to display the images in HTMLB UI Element which are stored under KM folder.
    Image element requires src field to be filled with URL. So do I need to provide the full path to images including server's host name and port (e.g. http://<server>:<port>/irj/servlet/../KMDocs/..)? or is there any work around for this.....
    Thanks in advance.
    Amol.

    Hi Amol,
    Yes there is.
    Actually two ways:
    1. Use request.getServletRequest.getServerName() and  request.getServletRequest.getServerPort()
    2. Use the url from "/irj" and forth (then the server and port of the opening window will be used).
    Hope that helps,
    Yoav.

  • Displaying image from Database with php

    Hello everybody,
    I'm working on a website that displays videos courses and tutorials as my final project
    and I'm working with "Flash builder 4" the database with mySQL and the application server with php
    Basically, the goal is to display a datagrid that shows the manager of the website in column all the information stored on the "Course" table
    the structure of the table is :
    Course (id,img,src,title,description)
    -id : primary key
    -img : path to a photo of course {for example picture of JAVA}
    -src : path to the playlist file {xml file}
    -title : String
    -description : String too
    I already succeeded to display all these contents on a DataGrid, but not with the image, I couldn't display an imageon its column using the path stored on the database, I used a DataRenderer to do that, and here is my code for Renderer and the DataGrid.mxml
    CourseGrid.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:courseservice="services.courseservice.*">
    <fx:Script>
    <![CDATA[
    import Renderers.CourseDeleteRenderer;
    import Renderers.CourseImageRenderer;
    import mx.controls.Alert;
    import mx.events.FlexEvent;
    protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
    getAllCourseResult.token = courseService.getAllCourse();
    ]]>
    </fx:Script>
    <fx:Declarations>
    <s:CallResponder id="getAllCourseResult"/>
    <courseservice:CourseService id="courseService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <mx:DataGrid x="10" y="10" id="dataGrid"
    creationComplete="dataGrid_creationCompleteHandler(event)"
    dataProvider="{getAllCourseResult.lastResult}"
    width="100%">
    <mx:columns>
    <mx:DataGridColumn headerText="" dataField="img" sortable="false" itemRenderer="Renderers.CourseImageRenderer"/>
    <mx:DataGridColumn headerText="id" dataField="id"/>
    <mx:DataGridColumn headerText="src" dataField="src"/>
    <mx:DataGridColumn headerText="title" dataField="title"/>
    <mx:DataGridColumn headerText="description" dataField="description"/>
    <mx:DataGridColumn headerText="Delete" itemRenderer="Renderers.CourseDeleteRenderer"/>
    <mx:DataGridColumn headerText="Update" itemRenderer="Renderers.CourseUpdateRenderer"/>
    </mx:columns>
    </mx:DataGrid>
    </s:Application>
    CourseImageRenderer.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:MXDataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx"
      focusEnabled="true">
    <mx:Image source="{data}" width="60" height="60"/>
    </s:MXDataGridItemRenderer>
    Result :
    Problem :
    How can I access to the path of the image, I tried to write "data.img" instead of "data" as img is the name of the column in the database that stores the path but it wasn't successful.
    I know that it not complete statement "data" because "data" is a reference to what the DataGrid provides of information that gets from the (CreationComplete) event.
    Question :
    - Can you please help me with this so I can complete displaying images by accessing to what is on the column in tha DB so I can manipulate my datas that is stored there ?
    ==> I still have some questions about the buttons to update and delete datas fomr the DataGrid, but, until now I need to access successfully to the photo and display it
    Thank you,

    Anyone that can help me with this ?
    Please, try this with me, I'm asking Flex developpers this might be easy for you !
    It's just question of how to access the string stored in the variable "data", when I used XML I just type the path to the repeated element like this :
    XML file :
    XML File
    <parent>
    <child>
    <repeated_child></repeated_child>
    <repeated_child></repeated_child>
    <repeated_child></repeated_child>
    </child>
    </parent>
    I used a Model as a reference to the xml file
    and an arrayList as a container of the repeated child
    I just write in the code "data.parent.repeated_child" to access the text in the "repeated_child"
    and here is the code, that I implemented to generate videos from xml file to display a video play list
    Video Playlist code(extract from XML file "data.xml")
    <fx:Declarations>
    <fx:Model id="model" source="assets/data.xml"/>
    <s:ArrayList id="products" source="{model.video}"/>
    </fx:Declarations>
    <mx:List  dataProvider="{products}" labelField="title"
      change="list1_changeHandler(event,List(event.currentTarget).selectedItem)" x="103" y="77" height="350" width="198"/>
    That was my goal to do that with the database.
    Please help me
    If you have other solution I still need it.
    Thank you,

  • 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 ).

  • Report - Unable to display image stored on External server

    Hi
    I need to display image on report that is on different instance for that i had put a formula column (in report 10g) and for that coloum i made file format as image and read from file as Yes and giving it the URL of Image stored on different server . but at run time for PDF output i am getting error like REP-1295: Data format of column 'CF_1' is unsupported
    Please help me , Thx in advance.
    Ranga

    From the documentation:
    URL Reference
    1.Insert a dummy image in your template.
    2.In Microsoft Word's Format Picture dialog box select the Web tab. Enter the following syntax in the Alternative text region to reference the image URL:
    url:{'http://image location'}
    For example, enter: url:{'http://www.oracle.com/images/ora_log.gif'}
    Element Reference from XML File
    1.Insert a dummy image in your template.
    2.In Microsoft Word's Format Picture dialog box select the Web tab. Enter the following syntax in the Alternative text region to reference the image URL:
    url:{IMAGE_LOCATION}
    where IMAGE_LOCATION is an element from your XML file that holds the full URL to the image.
    You can also build a URL based on multiple elements at runtime. Just use the concat function to build the URL string. For example:
    url:{concat(SERVER,'/',IMAGE_DIR,'/',IMAGE_FILE)}
    where SERVER, IMAGE_DIR, and IMAGE_FILE are element names from your XML file that hold the values to construct the URL.
    This method can also be used with the OA_MEDIA reference as follows:
    url:{concat('${OA_MEDIA}','/',IMAGE_FILE)}
    Edited by: stevencallan on Feb 13, 2009 3:50 PM

  • Displaying image from database table.

    Hi All,
       I am very new to Web Dynpro ABAP.
      I am developing an application to display an image in "Image" UI Element.
      For this I have one table consisting of fields image id, image data and image name. here image id is primary key field.
    Now i want to display an image from that table in "Image" UI Element. For this i am using "Filedown load" UI element.
    But by using filedownload ui element i can diaplay image in another new page.
    But my requirement is to display image in the same web page without creating a new one.
    (I want to display the image in "Image" UI element without storing that image in MIME objects.)
    Can anyone help me.
    Thanks in Advance!
    Regards,
    Sreelakshmi.

    What you describe is completely possible.  Since you have the image data (XSTRING) in the context you have everything you need.  You don't need to store the content into the MIME Repository, but you do need to get it somewhere where it has an externally accessible URL.  Remember you need to supply image UI element with a URL.  This URL is processed on the client side by the web browser.  Therefore just giving it a path to the context won't work as that isn't externally accessible.
    I would suggest instead that you place the image content into the ICM cache temporarily.  This lets you basically generate a temporary URL for the image that can be used by the Image UI element. 
    Here is some example code that pushes images into the ICM Cache:
    ****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.
       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 = me->gx_mimetype
      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 Image 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 ).

  • XML to display image from userDirectory

    Hi All,
    I've been racking my brain for weeks now trying to work out how to do the following. I can do some of it in Flash and some of in Flex, but I can't do it all in Flex which is frustrating.
    In a nutshell, I want to create an Air App that will allow me to load an XML file from:
    File.userDirectory
    and then display images or SWF's based on the XML data:
    ============
    <?xml version="1.0" encoding="utf-8"?>
    <GALLERY>
    <IMAGE TITLE="shop">test_4.swf</IMAGE>
    </GALLERY>
    ===========
    In Flex 3 I can get the XML file loading from the userDirectory no problem, but I can't work out how to code it to display the images on the stage.
    In Flash I can get the XML file loading from the app's installation directory only, but I can display the images on the stage.
    Here are the two lots of code:
    FLASH (Note: I have a few movieclips holding the images)
    =============
    var myXML:XML;
    var myLoader:URLLoader = new URLLoader();
    myLoader.load(new URLRequest("example.xml"));
    myLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML(e:Event):void {
    myXML = new XML(e.target.data);
    //trace(myXML.IMAGE);
    for (var i:int = 0; i<myXML.*.length(); i++) {
      trace("My image number is " + (i+1) + ", it's title is " + myXML.IMAGE[i].@TITLE + " and it's URL is " + myXML.IMAGE[i]);
      var url:URLRequest = new URLRequest(myXML.IMAGE[i]);
      var loader:Loader = new Loader();
      loader.load(url);
      switch (i) {
       case 0 :
        trace(0);
        mc_container_0.addChild(loader);
        break;
       case 1 :
        trace(1);
        mc_container_1.addChild(loader);
        break;
       case 2 :
        trace(2);
        mc_container_2.addChild(loader);
        break;
       default :
        //trace("Not 0, 1, or 2");
    =======================
    and:
    FLEX 3
    =======================
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
    width="768" height="1366" xmlns:comp="*" xmlns:fmtComp="fmtComps.*"
    creationComplete="readXMLContent();" paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0" backgroundColor="#ff00ff">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.utils.ObjectProxy;
    import mx.rpc.events.ResultEvent;
    [Bindable]
    private var userManualObj:ObjectProxy;
    private function loadModelData(event:ResultEvent):void
    userManualObj=event.result.UserManual;
    private function readXMLContent():void
    var reportDir:File = File.userDirectory.resolvePath("myassets");
    var xmlFile:File;
    var fileStream:FileStream = new FileStream();
    xmlFile = reportDir.resolvePath("example.xml");
    if(xmlFile.exists && xmlFile.size > 0)// Checking if the UserGuide.xml file already exists and the file is not empty
    var stream:FileStream = new FileStream();
    var xml:XML = new XML();
    stream.open(xmlFile, FileMode.READ);
    xml = XML(stream.readUTFBytes(stream.bytesAvailable));
    var strXml:String = xml.toXMLString();
    Alert.show(strXml);
    trace(strXml);
    stream.close();
    ]]>
    </mx:Script>
    <mx:SWFLoader height="93" width="708" id="mc_container_0" />
    <mx:SWFLoader height="393" width="708" id="mc_container_1" />
    <mx:SWFLoader height="293" width="708" id="mc_container_2" />
    </mx:WindowedApplication>
    =========================
    Somehow I need to get the XML data for the file location into each of the SWF loaders in Flex, but I simply don't know how to code it? It's probably very easy for an expert out there.
    Note: I only want to end up with an Air App which will be running locally on my machine.
    The idea is, when the XML file changes with new image data, the Air App will display that new image. The image will be added to the "myassets" folder too.
    If anyone out can point me in the right direction, it would certainly be appreciated.
    Many thanks.
    Tim

    Can anyone help me please?

  • How to adjust R/W rules to display images inline?

    Hi all,
    out of the box, when I insert an image in a paragraph (DITA 1.2) then FrameMaker 12 uses the "below line" display setting. I need to display it inline, at the insertion point.
    When I adjust the settings of the anchored frame then the inline setting is lost when saving the XML file. So evidently I need to adjust the R/W rules.
    I tried to add a corresponding inline rule but had no success so far, does anybody know what needs to be done? It seems like a quite common requirement to display images inline.
    Robert

    Robert, Scott,
         I just did a non-DITA test of the r/w rule:
             element "Image" {
          is fm graphic element;
          attribute "placement" {
            is fm property position;
            value "inline" is fm property value inline;
            value "break" is fm property value bottom;
         My test document had two Image elements, one positioned at the insertion point, one at the bottom of the column. In both cases, the placement attribute was set correctly when I saved the document as XML and interpreted correctly when I opened the XML document.
        Robert, does your EDD define the placement attribute? If so (and you want to keep it), you need to add the subrule
            is fm attribute;
    to the attribute subrule. However, since setting the attribute in the FM document does not affect the anchored frame position, so I recommend deleting the attribute from the EDD. The r/w rule I suggest assumes the attribute is XML-only.
        Before you make that change, though, I wonder if the value "inline" appears in italics in the Structure View. Italics indicates the default value for an attribute that has not been set. That would explain why you see the value in the Structure View but not in the attribute editor.
             --Lynne

  • Using many images in a "Text element"

    Hi,
    I'd like your advices and tips about how using multiples images in a Text element. In fact, i'm not completely satisfied with the default Rich Text Editor because when you when to use an image you have to know in advance the url of it...
    I tried to use FCK editor but there is no link between the images uploaded and the portal elements. So it's really hard to maintain.
    Can you explain me how your webmasters include multiples images in a text element ? In my dreams, i wish i had a button which will display all elements of type "Image" (which can be located in a single page)
    Thanks in advance
    Max.

    Hi,
    I'd like your advices and tips about how using multiples images in a Text element. In fact, i'm not completely satisfied with the default Rich Text Editor because when you when to use an image you have to know in advance the url of it...
    I tried to use FCK editor but there is no link between the images uploaded and the portal elements. So it's really hard to maintain.
    Can you explain me how your webmasters include multiples images in a text element ? In my dreams, i wish i had a button which will display all elements of type "Image" (which can be located in a single page)
    Thanks in advance
    Max.

  • Displaying Image in Document Category Created through N2T6

    Hi Experts,
           I am Creating a Document Category in ISH from Tcode N2T6 i want to display the image on the Screen Created  for Document   Category.
             Please let me know how to display image in document category.
    Regards,
    Rajesh

    Hi Rajesh,
    there are a few options to integrate images into a PMD application. At the end it depends on your use case. For example an image taken by CT would be shown using an external application, the DICOM viewer. On the other hand a simple picture used for illustration purpose can be easily integrated.
    In case you want to use an external application, I would recommend to implement a button in the PMD or the application toolbar to call the viewer application.
    In case you want to embed the picture into the PMD you have to utilize a Link element. There are a few implementations shipped with the standard delivery. For details check the online help [here|http://help.sap.com/erp2005_ehp_05/helpdata/en/4d/c7854878c86d4be10000000a42189e/frameset.htm] In paticular please check the PICTURE link element type.
    In addition you can also implement your custom link element type.
    Also I would like to share with you, that in the next delivery, Siemens will shipped a link element type for image management. It was designed to work with various image management services, but for now we have a implementation with imagic ims only.
    Hope this helps.
    Axel Biernat
    Siemens AG
    Product Commercialize - Knowledge Transfer

  • Display images like in images search engines

    I have a list of images that I want to display like the results in yahoo image and google image search engines.But when i use tha datatable component I can just display one column.And after I want to do something after that the user clicks on an image for example displaying it with real size not in thumbnail mode.
    I also tryed using the image browse widget and the yahoo carousel but I dont know how to hand events and how to know which picture is selected.
    Can you please help me.
    Thanks in advance

    fiedlerm wrote:
    I try to display workspace Image in a HTML Region dynamically.
    The Image Source is stored in a hidden Item filled by an application process.
    Region - Source:Always post code using <tt>\...\</tt> tags.
    <img src="#WORKSPACE_IMAGES#Sunny.gif">
    <br></br>
    &P1_ICON_SRC.
    <br></br>The first "hardcoded" Image was displayed.
    The second "dynamic" Image shows the following Text in the HTML - Region:
    <img src="wwv_flow_file_mgr.get_file?p_security_group_id=7856557026011968186&p_fname=Blizzard.gif"> Hidden page items cannot contain HTML mark-up. Look at the page source. When the item is rendered its value is contained in the hidden <tt>input</tt> element's <tt>value</tt> attribute:
    <input type="hidden" name="p_t01" id="P1_ICON_SRC" value="&lt;img src=&quot;wwv_flow_file_mgr.get_file?p_security_group_id=7856557026011968186&amp;p_fname=Blizzard.gif&quot;&gt;">The value must be properly HTML-escaped like this otherwise the browser would see it as tag soup:
    <input type="hidden" name="p_t01" id="P1_ICON_SRC" value="<img src="wwv_flow_file_mgr.get_file?p_security_group_id=7856557026011968186&p_fname=Blizzard.gif">">What exactly are you trying to achieve?
    Options for displaying images dynamically would include putting the required mark-up in an HTML region, only storing the image URI (or parts of it) in the page item, and referencing this using static text substitution. Others would be custom report templates or Dynamic PL/SQL regions.
    If you must store HTML code in session state and access it using static text substitution (not recommended) then use an application item.
    h4. Page Process
    begin
      :P1_ICON_SRC := 'Blizzard.gif'; -- Hidden page item
      :F41327_ICON_SRC2 := '<img src="#WORKSPACE_IMAGES#Blizzard.gif">'; -- Application item;
    end;h4. HTML region source
    <img src="#WORKSPACE_IMAGES#Sunny.gif">
    <br></br>
    <img src="&WORKSPACE_IMAGES.&P1_ICON_SRC.">
    <br></br>
    &F41327_ICON_SRC2.

  • Displaying Image from R3

    Hi Experts,
                   I want to display images of the respective employees from the R3 system. How can i do it? In what format the image will be sent from R3?
    Thanks & Regards,
       Mugundhan.A

    Hi,
    1. Create an attribute 'BinImg' of type 'binary' in context. Save binary stream returned from BAPI in this attribute.
    2. Create another attribute 'MyImage' of type String.
    3. Go to view layout. Create an UI element image. Map its source property to MyImage attribute.
    4. Once you have saved binary stream from BAPI, use following code to display image:
    byte b[]=wdContext.currentContextElement().getBinImg();
    IWDResource res=WDResourceFactory.createCachedResource(b,"R3Image",WDWebResourceType.JPG_IMAGE);
         String imgStr= res.getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal());
         wdContext.currentContextElement().setMyImage(imgStr);
    Regards,
    Deepti

  • How to resize display image item?

    How to resize an image in display image item not in column?
    I find a way to resize it in column which similar to this way
    decode(nvl(dbms_lob.getlength(PLAYER_PIC),0),0,null,
    '<img style="border: 4px solid #CCC; -moz-border-radius: 4px; -webkit-border-radius:
    4px;" '||
    'src="'||
    apex_util.get_blob_file_src('P5_PLAYER_PIC',ROWID)||
    '" height="75" width="75" alt="Player Image" title="Player Image" />')
    detail_img
    but when I try to implement it to display image item which I returned the image from the column, I cant resize it this way, or may be I used wrong syntax, can you please help me finding way to resize it with steps?

    I guess it is because of some carriage returns in your dynamic img tag that is being generated may be not, so make sure there are no breaks half-way through he attributes of the img tag.
    decode(nvl(dbms_lob.getlength(PLAYER_PIC),0),0,null, '<img style="border: 4px solid #CCC; -moz-border-radius: 4px; -webkit-border-radius: 4px;" '|| 'src="'|| apex_util.get_blob_file_src('P5_PLAYER_PIC',ROWID)|| '" height="75" width="75" alt="Player Image" title="Player Image" />')  detail_imgand also inspect the element/img to see if the code is rendered correctly
    Thanks

  • Apache /localhost not displaying images...

    I use a simple html file for Safari's homepage consisting of some CSS and 2 images -- this used to be placed in 'my' Sites folder.
    I upgraded from SL to Mav so have started Apache and moved my index.html plus images to /library/webserver/documents/ and have Safari's homepage pointed at http://localhost/index.html.
    It's a very simple page and opening the page in Safari works as expected but when using /localhost it doesn't display the images (?)!
    It's a small thing but I'd like to understand why it's not working, if anyone can help it'd be greatly appreciated.
    Thanks.

    You should be able to put it in the WebServer/Documents and run it from localhost.
    I altered the standard index.html in mine, adding one of the "PoweredByMacOSX" logos and it displayed the images. Are your image tags correct? I had thought you could add an image without the size elements, but it didn't work. I had to put the width and height elements in.
    EDIT: I went back and removed the size elements, then tried to open the html document in Safari and the image displayed. So, I went back to localhost and reloaded and the images appeared full size with out the size elements in the img tag.
    Message was edited by: Barney-15E

  • A component is not able to display Image UIElements anymore

    Dear Developers,
    I am discovering today that a component that I have developped is not able to display the Image UIElement anymore. In the workbench, the element is displayed correctly ( it has no binding of its attributes to the context and the URL of the source is static).
    Its parent container is the ROOTUIELEMENTCONTAINER and it is visible (all parameters are the default).
    No Image can be displayed anymore. This is very strange. My other UIelements in the view are displayed correctly and seem to be working nicely (events, actions, methods calls ...).
    Can you help me ?
    Best Regards,
    Olivier MATT
    PS: I tried accessing the same URL with a Image UIElement in another component and it works fine.  It seems that the generated coding Javascript/HTML is invalid (when I try to display the sourcecode of the application/frame, IE informs me that the source contains errors). For Information, I am running Netweaver SP 11.

    Hi again,
    I think I have found where my problem is. I have right clicked on th eimage and try to set some settings in the browser while using the application (on the displayed image).
    Now the image is not displayed anymore (according to the settings) but I dont know where I can delete these setting values. I tried removing my cookies but it did not help.
    Any idea?
    Sincerely,
    Olivier MATT

Maybe you are looking for