Jpegphoto attribute on messener express

Hi All,
Is it possible to display any ldap user's photograph using 'jpegphoto'
attribute on Messenger Express ??
I am using JES 2005Q1 on Solaris 9 sparc platform.
Thanks,
Shujaat

Hi Jay,
I am not talking about the jpg attachments. Instead I am concerned with my company's employees who have uploaded their images for the employee's identificaton. Ldap attribute for images is "jpegphoto" & the format of this attribute is binary instead of string.
Now I want to display their images whenever they log into ME.
Any luck ?
Thanks.

Similar Messages

  • How To Display User Photo (jpegphoto attribute) From OID LDAP Entry

    Hello everyone,
    I've spent a few days looking for a solution to this problem with no luck.
    I have a PLSQL database package that generates an organisation chart of users. It works fine but I am struggling to retrieve the users photo.
    I have tried linking to the jpg files in my /oiddas/ui/oracle/ldap/das/Images/users/ folder but these files do not always exist so this is unreliable. These files only appear to be created if a user has previously viewed their profile in Self Service Console. Even if the files exist they are often out of date and don't reflect the photo held in OID.
    I know the photo is stored in the jpegphoto attribute and I have been using DBMS_LDAP calls to retrieve other user details but I just can not find a definitive answer to how I send this image to the browser.
    If anyone has any ideas, sample code or web links it would be appreciated.
    Thanks,
    Matt

    The idea would be to get the attribute value from OID using DBMS_LDAP or Java (whatever is easyer for you) and dump it in a file. Then generate the URL to the file.
    When you initiate the LDAP connection to get the picture, remember to specify jpegphoto as a binary attribute.
    Octavian

  • Using PHP to display OID jpegPhoto attribute

    Has anyone been able to display the OID jpegPhoto attribute using PHP?
    I'm running OAS 10g R2 with PHP 4.3.9
    I've activated the PHP extension modules gd2lib and exif to manipulate images.
    I can also retrieve and display all OID attributes using PHP, except for the jpegPhoto attribute which looks like a small binary string.
    Any help would be appreciated.
    Thanks.

    create a procedure with this code
    OWA_UTIL.mime_header (l_mime, FALSE);
    OWA_UTIL.http_header_close;
    WPG_DOCLOAD.download_file (l_lob);
    where l_lob is your BLOB field and l_mime is the mime type of the photo.
    and then in your page just write
    <img src=/portal/pls/portal/my_schema/my_plsql_proc?param1=value1>

  • Bug in dvt:graph tag? Cannot set graphType attribute using EL expression

    Dear all,
    First thing sorry if this is not the correct forum, but I have a problem that is driving me crazy with ADF DVT tags in JDeveloper environment.
    I'm working with DVT tags to display some graphs in my application. I need to decide at runtime the type of graph I'm going to render in my page, because the type of graph is stored in a database. Also, I use tabular data instead of Data controls, because I have to reuse POJO objects from an existing model tier.
    I have seen that you can bind the graphType attribute of <dvt:graph to a backing bean property, as explained in : http://www.oracle.com/technology/products/jdev/11/how-tos/dvt_how_tos/adf_dvt_graph_howto.html. You can even change the type dynamically responding to user actions, ie : you can change for example from BARS to AREAS or whathever. So far so good, the problem is that I have tried the simplest example possible and it seems that I cannot bind the graphType attribute to a backing bean property using an EL expression.
    In my example, the backing bean has a type property with fixed value AREA_VERT_ABS, but it renders as a BAR_VERT_CUST, that is to say, it completely ignores the binding for the graphType attribute, but the binding for the tabularData attribute works properly because it renders the dummy data provided. I have tried with other types of graphic and it always renders as BAR_VERT_CUST.
    I'm working with JSF 1.2 + Facelets + JDeveloper 11.1.1.2.0 and the integrated weblogic server.
    My page is a facelet page as follows :
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:dvt="http://xmlns.oracle.com/dss/trinidad/faces">
    <af:document id="d1">
    <af:form id="f1">
    <dvt:graph id="g1" graphType="#{graphBean.type}" tabularData="#{graphBean.tabularData}" >
    </dvt:graph>
    </af:form>
    </af:document>
    </f:view>
    My backing bean :
    public class GraphBean {
    private String type = "AREA_VERT_ABS";
    public GraphBean() {      }
    public String getType() {
    return type;
    public List getTabularData() { // here I return a hardcoded list that is properly displayed ///
    Note : the sam page but changing #{graphBean.type}" by "AREA_VERT_ABS" renders properly :
    <dvt:graph id="g1" graphType="AREA_VERT_ABS" tabularData="#{graphBean.tabularData}" >
    </dvt:graph>
    Any advice will be very much appreciated.
    Thanks and regards,
    Plan.

    Hello,
    Actually the setter is not needed because the tag only reads, but it does not update the backing bean.
    Anyway for verification pourposes I have changed to the following version without results.
    Anyone from Oracle could give me some light ?
    public class GraphBean {
    private String type = "AREA_VERT_ABS";
    public GraphBean() {      
    public void setType(String type) {
    this.type = type;
    public String getType() {
    return type;
    }

  • Reorder attributes in an expression transformation

    Hi,
    I'm using OWB 10gR2 and I'm wondering if there is a way to reorder the attributes in an output group of an expression. For example, if I have a list of 3 attributes:
    SHORT DESCRIPTION
    NAME
    DESCRIPTION
    and I'd like for them to be ordered
    NAME
    SHORT DESCRIPTION
    DESCRIPTION
    so that they match the order in the target table and thus avoid crossed connector lines. Is this possible?
    The only approach I can come up with would be to delete the attributes and recreate them in the order I'd like. Reordering them would be a much easier solution.
    Thanks,
    Greg

    Hey Greg.
    I understand what you mean. If you have a table with many columns, this really confuses us. I don't know if it's possible to reorder.
    But what you may use that can, at least, make your mappings look a bit less confusing is to change the "use display set property" to MAPPED. Right Click any group of any operator, then you go to "Use Display Set" -> MAPPED.
    This will show you only mapped attributes. The lines will still cross each other in the mapping designer, but at least You'll see mapped attributes only.
    Don't know if this will help ya, but it's an alternative.
    Regards,
    Marcos

  • Iam unable to create an attribute  with EL expression even i rtrexpr=true

    HI
    I have written one custom tag. For that one attirbute i delcared rtexpr=true in TLD file. but it is not evaluation the EL expression. can any one plz help.it is treating like static text. <orig:StringReplace name="${result.introducerName}" insertString="<br>" replaceAt="15"/>

    If you have a JSP1.2 container, then rtexpr is irrelevant. It should probably be false, so that you don't try to use <%= expr %> with it.
    The responsibility for evaluating the expression lies with your tag.
    Therefore the attribute should be read as a string only,
    Your tag then has to evaluate the EL expression.
    How are you doing that?
    What does it return?
    What does <c:out value="${result.introducerName}"/> give you?
    Probably the issue is somewhere in your custom tag code.

  • Index for attributes with boolean expression

    hi
    in our project we use a XML database to store our data. we have a lot of searches in the DB in the form
    //object\[@class="..." and @module="..."\]
    thus i created an index for the attributes class and module (node-attribute-equality-string) to improve the performance. this works really well, but I'm still not satisfied with the results. is there a way to create an index that handles both attributes at once (instead of two indexes).
    another problem, occurs after an insert. when i access the data (via a query like the above), then it goes fast. when i insert another node into the database (that does not even has attributes class or module, so it does not interfere with the index) then the same query as before is slower (by a factor of 3 to 5). when i then reindex manually everything is fast again.
    btw. we use a node container
    greets
    Edited by: user11787357 on Aug 13, 2009 4:35 AM

    user11787357 wrote:
    //object\[@class="..." and @module="..."\]
    thus i created an index for the attributes class and module (node-attribute-equality-string) to improve the performance. this works really well, but I'm still not satisfied with the results. is there a way to create an index that handles both attributes at once (instead of two indexes). Add an attribute to your document that combines @class and @module. This @class-module attribute needs a delimiter to seperate the two parts, some string that may not be found in either valuespace. Simply create an index on that attribute. You can use XQuery to update your documents in the database, or maybe XSLT or SAX or BDB XML XmlReader/XmlWriter as a preprocessing step.
    another problem, occurs after an insert. when i access the data (via a query like the above), then it goes fast. when i insert another node into the database (that does not even has attributes class or module, so it does not interfere with the index) then the same query as before is slower (by a factor of 3 to 5). when i then reindex manually everything is fast again.
    btw. we use a node containerWhich version and patch level? There have been various patches floating about this forum, some of them related to indexing. I've lost track of them. It would be good to see a Consolidated Patch 2 (CP2) for 2.4.16 even though 2.5 seems not too far away.
    Michael Ludwig

  • Hi Friends, i have to validate the min.length attribute using Regular expression, The min.length accepts single value digit only which accepts =5 & min.length accepts =9 please guide me as soon as possible

    dfdsfds

    User,  we need to know your jdev version!
    It would be helpful if your question would not only the header of the post.
    Can you please rephrase your question? Somehow i don't understand xour question.
    Timo

  • How to reference a custom property in a vo transient attribute expr + bug

    Hi all
    I have created a transient attribute with an expression that evaluate null content to replace it by a appropriate text.
    <ViewAttribute
        Name="DescriptionUI"
        IsUpdateable="false"
        IsSelected="false"
        IsPersistent="false"
        PrecisionRule="true"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="VIEW_ATTR"
        SQLType="VARCHAR">
        <TransientExpression><![CDATA[((Description == null) ? 'Pas de description' : Description)]]></TransientExpression>
      </ViewAttribute>I have defined a custom property for that attribute that contains the message text. I was surprised to see that the custom property was not associate with the attribute in the source file. Don't understand where the association is done
        <Properties>
          <CustomProperties>
            <Property
              Name="flex.tree.noLabel"
              ResId="flex.noDescription"/>
          </CustomProperties>
        </Properties>I had some difficulties to use the custom property editor. When creating a new related one by using an existing resource the property column value is not changed and the content 'Property' is generated. Because no relationships exists between attribute and the property, the entry is lost in the table referring custom property list for the attribute when your come back into the view object or if you save an another entry in an another attribute.
    So my first question ? Is the attribute editing part the right part to define custom property pairs if they are not related to attributes ? is it a bug ?
    My second question is : is it possible to evaluate the bundle in the expression (replacing the literal 'Pas de description' by an expression) ? What is the expression to use ? Where it is described to do such things in the help or in the documentation ?
    Thank you

    This is wrong
    ((Label == null) ? {FlexParameterModelBundle['flex.tree.noLabel']} : Label)
    What is the correct syntax to refer to the project model standard bundle in the groovy expression ?
    Thank for the help !

  • Text/expression-language-based paradigma continues?

    i've been working with jsp and struts for a while. the most significant drawback of jsp, custom tags/jstl and struts is its "runtime" binding caused by the heavy use of string-attributes and interpreted expressions.
    it makes the coding itself harder (loss of compiler support and strong typing), it increases the amount of testing (automated tests, regression tests) extremely, it makes jsp-apps very hard to mantain, it is error-prone when changed or refactored, it is slower in execution and last but not james requires extra developement tools (such as struts-editors) to effectively maintain the applications.
    but i like the paradigma of a web application that keeps a view state, handles "events" etc.
    the only thing i can't understand is why jsf builds on the error-prone jsp/custom tag paradigma instead of compiled server side ui components. it obviuosly still tries to follow the myth, that web-designers and application developers can share their source (i.e. js-pages) by using tags. imo this is a degeneration of the good idea to leverage html by some custom tags. these tags empower designers to make their pages dynamic. (enterprise) software developement ist very different: complex use cases, business logic and often ui-"logic", integration issues etc...
    the life cycle of a jsp with custom tags is weird (even more in struts):
    - objects (variables in scriptlets) already existing in the scope of the jsp-execute-method are wrapped into attributes of page, request or application scope.
    - tags are defined using string-based attributs, such as <html:write name="pinky" property="brain" />
    - the implementation of the tag tries to look up the object in any of the scopes, starting with page scope
    - if the object exists, it tries to read/set its property via reflection
    so you lose strong typing, compile time checks and performance.
    there are several frameworks that do not build upon jsp and tags but put in an extra layer. this layer is similar to a rich client "form" and renders the output into html or any other format.
    so i'm not preferring any framework, just looking around and curious why this architecture has been chosen for jsf.
    thanks
    tom

    the most significant drawback of jsp, custom tags/jstl and struts is its "runtime" binding
    caused by the heavy use of string-attributes and interpreted expressions.I second this heartily.
    but i like the paradigma of a web application that keeps a view state, handles "events" etc.
    the only thing i can't understand is why jsf builds on the error-prone jsp/custom tag
    paradigma instead of compiled server side ui components. The JSF - JSP connection is a major problem. More and more developers are starting to express reservations about it, because the two technologies don't play well together. But I think you've hit on an even deeper fundamental flaw in the equation -- the evils of runtime binding. The heavy JSF/JSP reliance on runtime evaluation is a reliability nightmare. Developers choose Java, in part, because of the robustness provided by compile-time checking. We give that up when it comes to JSF/JSP or Struts web applications, and that's an unacceptable state of affairs.
    Winer says that "JSF has taken a major step in the right direction with the <managed-bean> and <referenced-bean> configuration elements. These give some hope for development tools to finally provide real code insight (and even error reporting) for EL expressions, because they define both what keys are used in the expression language and what types of objects may be at those keys." However, this will help with only the simplest EL expressions. As soon as an EL expression reaches into nested properties and maps that aren't defined in the config file, we're back to runtime binding and error reporting. The addition of generics to the language with 1.5 might have made it possible to introduce strong EL type checking at page compile time, but Sun's short-sighted type-erasure implementation of generics rules this out permanently.
    Look at what Microsoft is doing with ASP.NET. It's not perfect, but the fundamental technology is based on compiled server side ui components. There are places in that framework where you can write expressions aren't evaluated until runtime, but it's certainly not the fundamental basis of the model as it is with JSF/JSP. And the .NET implementation of generics may make it possible to have these dynamic expressions type-checked at page compile time in a future implementation of .NET.
    I keep reading comments from the JSF proponents who say things to the effect of "yes, we know JSP doesn't play well with JSF, but JSF allows you to plug in a different rendering technology." Well, we need one, and we need it urgently. ASP.NET has been out for two years now, and was far more polished and useable at its release than JSF is now after a very long development cycle.
    Rightly or wrongly, people will judge JSF on the merits of the reference implementation. And I fear that a lot of developers are going to throw up their hands after a taste of the JSF/JSP world and move to .NET.
    Stephen Schaub

  • Copy paste a expression operator.

    hi all,
    i have a exp operator in a mapping ,i have created 200 output variables(manually)
    in the same mapping i have a req to create a same exp operator( this for performing union operator)
    now is there any way with which i can copy the exp i have already created.
    or is there any better way of creating output variables in a exp operator.
    please suggest,this will be a great help.

    Please go through the link
    it will help you
    Copy the Attributes of an Expression from Input to Output

  • Xalan: extension element, evaluating xsl:attribute in an extension

    Hi,
    Can I evaluate in an extension method of an extension class an <xsl:attribute ... ?
    for example in:
         <test:layout figure="rectangle" >
              <xsl:attribute name="color"><xsl:value-of select="$var1" /></xsl:attribute>
         </test:layout>
    having Test as the extension class, and "layout" the corresponding method, I need to evaluate attribute "color", I have test it and when Test.layout is called it does'nt has color attribute, is there any way to evaluate the <xsl:attribute ... expression to access the value of color ?
    thanks for any help.

    Hi, I found the answer, and here it is for any body with same dude:
    String attrExpr = ((ElemExtensionCall)elem).getAttribute ( "color", context.getContextNode(), context.getTransformer() );
    org.apache.xpath.XPathContext xctxt = context.getTransformer().getXPathContext();
    XPath myxpath = new XPath(attrExpr, elem, xctxt.getNamespaceContext(), XPath.SELECT);
    XObject xobj = myxpath.execute(xctxt, context.getContextNode(), elem);
    return xobj.str(); // this is the value of the attribute.
    in xslt: <test:entension1 color="@Attr" /> or any other xPath
    I found it at Redirect.java
    thanks to you all.

  • Change all spaces to underscores in href attribute

    Hello,
    I've just realised all my linked documents are referenced incorrectly in my HTML code: I've used spaces in the file names and didn't replace the spaces by %20 in the URLs in the code. After reflexion, I decided to rename all my files so they contain "_" instead of spaces (done now) and hence now need to update my links (<a href="...">) in the code.
    I've tried various combinations of specific tag/attribute, of regular expressions in the Find/Replace tool of Dreamweaver but I can't get it to do what I want. And I really don't want to do this manually.
    Is there way to search for href="(anything)(a space)(anything)" where (anything) can be a letter, a word or several words (with/without digit characters)? To replace the spaces, I'd then use something along the lines of $1_$2 where $1 = href="(anything) and $2 = (anything)".
    Emilie

    I answered the same question from someone else yesterday. In the Find & Replace dialog box, make sure you select Use regular expression.

  • Custom tag attributes and rtexprvalue property

    I have created a custom tag. In my .tld file I have added <rtexprvalue>true</rtexprvalue>
    for several of the tag's attributes. Now I want to be able to pass values to
    these attributes with the expression syntax:
    eg <mytagprefix:pager maxRecordCount="{pageFlow.maxRecords}" />
    where maxRecords is a public variable in my pageflow.
    In my tag code to assign the value of maxRecordCount I have the following:
    public void setMaxRecordCount(String maxRecordCount) throws JspException
    Object obj = null;
    obj = evaluateExpression(maxRecordCount, "maxRecordCount");
    if(hasErrors())
    reportErrors();
    localRelease();
    else
    pb.setMaxRecordCount(new Long(((String) obj)).longValue());
    I keep getting compile time errors in my jsp such as:
    Error: no match was found for method setMaxRecordCount(long) in type package.PagerTag.
    where package is the package of my custom class PagerTag.
    In my pageflow maxRecordCount is a String. I don't understand why it is looking
    for a long. Sometimes the error goes away and I thought I had gotten it to work
    but then I realized that it was only working as long as the name of my attribute
    and the name of my public variable matched and that is not what I wanted to do.
    Should I be able to do what I am doing? I can instead pass this to the tag:
    <netui-data:getData resultId="maxreccount" value="{pageFlow.maxRecordCount}" />
    maxRecordCount="<%=(String) pageContext.getAttribute(\"maxreccount\")%>"
    but that is much less convenient.
    Thanks for any help.
    Robin

    Hello,
    Yes I forgot to include the faces xml DD. Here are the portions of code relating to the component and renderers:
    <render-kit>
    <renderer>
    <component-family>MyFamily</component-family>
    <renderer-type>MyRenderer</renderer-type>
    <renderer-class>essaisUn.MyRenderer</renderer-class>
    </renderer>
    </render-kit>
    <component>
    <component-type>MyComponent</component-type>
    <component-class>essaisUn.MyComponent</component-class>
    <component-extension>
    <component-family>MyFamily</component-family>
    <renderer-type>MyRenderer</renderer-type>
    </component-extension>
    </component>I changed from "<hello>" to "hello" and I still get the same exception.
    Can anyone bail me out?
    Thanks in advance,
    Julien Martin.

  • Can I create my own attributes in iDS?

    I know to store my photo I can use the jpegPhoto attribute, but what about if I want to store other binary objects like maybe my fingerprints, can I create my own attributes for it, and how?
    Or I can't do that?

    You can use Directory Server Console to create new attributes. After adding new attributes to your schema, you must create a new object class to contain them.
    Creating object class:
    1.Click Create on the Object Classes tab.
    2.Enter a unique name for the object class in the Name text box.
    3.Enter an object identifier for the new object class in the OID (Optional) text box.
    4.Select a parent object for the object class from the Parent drop-down menu.
    5.To add an attribute that must be present in entries that use the new object class,highlight the attribute in the Available Attributes list and then click the Add
    button to the left of the Required Attributes box.
    6.To add an attribute that may be present in entries that use the new object class,highlight the attribute in the Available Attributes list and then click the Add
    button to the left of the Allowed Attributes box.
    7.To remove an attribute that you previously added, highlight the attribute in the Required Attributes list or the Allowed Attributes list and then click the
    corresponding Remove button.You cannot remove either allowed or required attributes that are inherited
    from the parent object classes.
    8.Click to OK.
    To create a new attribute:
    1. Display the Attributes tab.
    2. Click Create.
    The Create Attribute dialog box is displayed.
    3. Enter a unique name for the attribute in the Attribute Name text box.
    4. Enter an object identifier for the attribute in the Attribute OID (Optional) text box.
    5. Select a syntax that describes the data to be held by the attribute from the Syntax drop-down menu.
    6. If you want the attribute to be multi-valued,select the Multi-Valued checkbox.The Directory Server allows more than one instance of a multi-valued attribute
    per entry.
    7.Click OK
    This is repersenting binary data.
    You can represent binary data, such as a JPEG image, in LDIF using one of the following methods:
    The standard LDIF notation, the lesser than (<) symbol. For example:
    jpegphoto: < file:/path/to/photo
    If you use this standard notation, you do not need to specify the ldapmodify -b parameter. However, you must add the following line to the beginning of your LDIF file, or your LDIF update statements:
    version:1
    For example, you could use the following ldapmodify command:
    prompt% ldapmodify -D userDN -w user_passwd
    version: 1
    dn: cn=Barney Fife,ou=People,dc=siroe,dc=comchangetype: modify
    add: userCertificate
    userCertificate;binary:< file: BarneysCert
    Using base 64 encoding. You identify base 64 encoded data by using the ::
    symbol. For example:
    jpegPhoto:: encoded_data
    In addition to binary data, other values that must be base 64-encoded include:
    Any value that begins with a semicolon (;) or a space
    Any value that contains non-ASCII data, including new lines Use the ldif command-line utility with the -b parameter to convert binary data to LDIF format:
    ldif -b attribute_name
    where attribute_name is the name of the attribute to which you are supplying the binary data. The binary data is read from standard input and the results are written to standard output. Thus, you should use redirection operators to select input and output files.
    The ldif command-line utility will take any input and format it with the correct line continuation and appropriate attribute information. The ldif utility also assesses whether the input requires base 64 encoding. For example:
    ldif -b jpegPhoto < mark.jpg > out.ldif
    This example takes a binary file containing a JPEG-formatted image and converts it into LDIF format for the attribute named jpegPhoto. The output is saved to
    out.ldif.
    The -b option specifies that the ldif utility should interpret the entire input as a single binary value. If -b is not present, each line is considered to be a separate input value.

Maybe you are looking for

  • Exporting Text as InDesign Tagged Text in CS3

    Hello All, I am facing a problem exporting the Text from InDesign Document as InDesign Tagged Text. It use to work properly in CS2. But in CS3 the IExportProvider interface CanExportThisFormat() always returns false for the format name "Indesign Tagg

  • Connecting Ti-89 Titanium to Macbook Pro

    My computer is a Macbook pro, from around April of 2011.  Its running OSX 10.6.8 Snow Leapord. I cant even download the Ti-connect program.  I click on the link to download it and nothing happens.  Anyone help?

  • Input Tax; Out put tax & VAT accounts

    HI, Please let me know what are the GL account required for the above taxes, with example GL account numbers. Consider, for example Series 1XXXXX Liabilites; 2XXXXX Assets; 3XXXXX Income & 4XXXXX Expenses. Thanks Partha

  • How to work web portal with sap rfc

    Hi, This is prasad my question is my project architecure includes: BEA web portal platform as frontend web methods as the middle ware and SAP CCS the data handling will be done using SAP RFC how to handle the validation of fields in the web portal us

  • Bridge CS6 Mavericks. "Preview" doesn't open images (they appear as white thumbnails),"Content" does

    I recently reformatted my hard drive and reinstalled my programs, replacing Snow Leopard with Mavericks. I've downloaded the latest version of Camera RAW.  In Bridge I now see my images as thumbnails without a problem. However thePreview view doesn't