Display user image

We store photos of our users against their LDAP profile. Is there a way to retrieve this photo and display the image on a plsql portal page?
Any help would be appreciated.

may be this help for you
declare
l_person_guid varchar2(32);
begin
select guid
into l_person_guid
from portal.wwsec_person$
where id = wwctx_api.get_user_id;
htp.p('<img src="http://host:port/oiddas/oracle/ldap/das/Images/users/DOMAIN_NAME/'||l_person_guid||'.jpg">');
end;

Similar Messages

  • User Upload Field That Display's Image in Movie

    I need to create an upload button that would allow the user
    to upload a jpeg file. Then make the jpeg have a transparent
    background and display it in the movie. Anyone know how to do
    that?

    That's what I'm trying to figure out. First step I need to
    know how to do is let user upload and display their image in the
    movie. Do you know how to do that?

  • How to display an image if user does not have flash installed?

    Hi, Not all people have flash and the ones that don't will
    have an unpleasant experience on my website. How can I display an
    image instead of the flash itself for people that don't have flash
    who visit my website? I just have flash on the upper portion of the
    website. Please explain how I can do this! I haven't done flash in
    a long time so be simple! Thank you!

    In the site you can download the SWFObject1.5.
    It includes a javascript which is embeding the flashmovie
    with vallidaton.This swfobject.js can be used for any html.

  • Displaying an image from a URL

    I have a program which visits a html page and creates a JComboBox with all the images from that page. When the user selects an image from the combo box it displays that image in a JLabel. This works fine with images that exist, when I try it with an image that doesn't exist I want it to realise that and display a message saying that "the image cannot be found". Heres part of my code that handles the selection:
    public void actionPerformed(ActionEvent f) {
                        JComboBox cb = (JComboBox)f.getSource();
                        String imageName = (String)cb.getSelectedItem();
                        try {
                             imageUrl = new URL(imageName);
                        catch (MalformedURLException ex) {
                             System.out.println("Image Collection Error: " + ex);
                        catch (Exception e) {
                             System.out.println("Some sort of exception: " + e);
                        picture.setIcon(new ImageIcon(imageUrl));
              });When I select a bad link image from the list I was hoping the catch blocks would trap it and I could make adjustments accordingly, this does not happen. No exception is thrown at all.
    Any ideas of what I can do??
    Bow_wow.

    Thanks for your help, I have changed it to the following code:
    ImageIcon imageToDisplay = new ImageIcon(imageUrl);
                        ImageIcon badImage = new ImageIcon("logo.jpg"); // An image I know exists
                        int status = imageToDisplay.getImageLoadStatus();
                        if (status == MediaTracker.COMPLETE) {
                             picture.setIcon(imageToDisplay);
                        else {
                             picture.setIcon(badImage);                              
                        }It works now, thanks again for your help!

  • Displaying TIFF images in Oracle Forms 6i

    Hello, friends!
    I am working in Oracle Forms 6.0.8 (that ancient tool) and encounter a problem with displaying TIFF images.
    I have a number of scanned images and some of them are displayed and some are not. I've tried both extracting them from the database or from the file system (using READ_IMAGE_FILE). Sometimes I am getting just blank field in my image item and sometimes (after using READ_IMAGE_FILE) I get the error FRM-47100 (cannot read image file). Of course I've checked that all the files are displayed using standard tools for displaying TIFFs.
    Basically the question is what kind of TIFF is considered valid and readable by Oracle Forms.
    Analyzing TIFF tags actually gave me nothing: I have a pair of files with tags different only in image width/length and a number of rows/strip (but even those values are close), and one of the file is displayed correctly while the other is not. The thing I noticed is that invalid files are using compression type of CCITT Group 4.
    Possibly Oracle Forms follows TIFF specification only to certain extent and does not support all the extensions, while sometimes the problems are not visible to user.
    As a result of my work I need some automatic tool that converts undisplayable TIFF files to displayable ones but firstly I am to determine where the problem is. And it would be very good to have a prooflink that approves my decision.
    Looking forward to any help! Thanks in advance.

    Thanks to everybody, but I'm afraid my files don't contain any EXIF tags (although TIFF seems to support them). The file doesn't contain any tags with IDs greater than 0x7FFF but only core TIFF tags (with IDs of lower numbers). Moreover I have a file with exactly the same set of tags (but the values are a bit different) which is displayed properly.
    I've shared the issued file (nondisplayable) on the following link: [https://rapidshare.com/files/3137807470/2.tif]
    If anyone could tell me why isn't it displayed in Forms I would be very grateful.

  • Need help in displaying an Image in a JLabel

    Hi everyone,
    I am using a JLabel to display images on a particular screen. I am facing some problem while doing so..
    On my screen there are images of some garments. When the users select colors from a particular list, i should color this garment images and load it on the screen again with the colors. I have a floodfill class for filling the colors in the images. The problem I am facing is I am able to color the image properly with my floodfill class but when displaying the image on the same jlabel, the image gets distorted somehow.
    Everytime I color the image, I create an ImageIcon of the image and use the seticon method from the JLabel class. First I set the icon to null and then set it to the imageicon created. here is the code I use.
    If 'image' is the the image i have to load
    ImageIcon imgicon = new ImageIcon(image);
    jlabel.setIcon(null);
    jlabel.setIcon(imgicon);I am setting the icon to null because I have not found any other method to clear the previous image from the jlabel.
    Can anyone who has worked on images before and faced a similar situation help me with this?? Is there some other container I can use besides the JLabel to display the images perhaps?
    Thanks in advance.....
    Bharat

    And the thing is when I first go into that screen with the selected colors it is displaying the images perfectly.
    It is only giving problems when I pick different colors on the screenit really sounds like the problem is in your floodfill class.
    I have no idea what's in floodfill, but if you were e.g. using a JPanel and paintComponent,
    you would need to have as the first line in paintComponent()
    super.paintComponent(..);
    to clear the previous painting.
    if not, you would be just drawing over the top of the previous paintComponent(), and if the calculation of the
    painting area is not 100% exact, you may get the odd pixel not painted-over, meaning those pixels will display
    the old color.

  • How to Display an Image on my FORM

    Good Day!
    I would like to ask some help from you guys with my problem on how to display an image on my form. I would like to display my uploaded image on my form but instead of an image, the get_blob_file is showing. By the way, I'm using Apex 4.1
    I downloaded the Order Entry Sample Application and followed the Page 6, the Product Details. I even made snapshots of each details from Page Rendering to Page Processing in order not to miss a thing.
    At the moment, I was able to upload or store the image on my created Oracle table and also able to retrieve it on the Download Link Text with Content Disposition value of Inline, provided by APEX Settings. If I invoke the Download link beside the file browser, a page with the image will be shown, below is the address:
    http://127.0.0.1:8080/apex/apex_util.get_blob_file?a=200&s=339877802936975&p=230&d=7107921433296839&i=7107601420296838&p_pk1=54&p_pk2=&p_ck=7D6512D967336C4B94258EEA3CDF1BE6&p_content_disposition=inline
    However, instead of showing the image on a region, below is the one showing on my Form:
    <img src="apex_util.get_blob_file?a=200&s=339877802936975&p=230&d=7107921433296839&i=7107601420296838&p_pk1=54&p_pk2=&p_ck=7D6512D967336C4B94258EEA3CDF1BE6" />
    As you can see the parameter values are the same but I know I missed something that's why I'm here :)
    I would highly appreciate all the help you can provide and many thanks in advance.
    I tried to change gear by making an html region of type PL/SQL (anonymous block) and a procedure but still no image :(
    Below are the scripts.
    declare
    cursor cur is
    select *
    from wsemployee
    where empid = :P230_EMPID;
    begin
    for rec in cur
    loop
    IF rec.mime_type is not null or rec.mime_type != '' THEN
    htp.p( '<img src="my_image_display?p_image_id='||NVL(rec.empid,0)||'" height="'||100||'"/>' );
    else
    htp.p( 'No Image ');
    END IF;
    htp.p( ' ');
    end loop;
    end;
    PROCEDURE
    create or replace PROCEDURE my_image_display( p_image_id IN NUMBER)
    AS
    l_mime VARCHAR2 (255);
    l_length NUMBER;
    l_file_name VARCHAR2 (2000);
    lob_loc BLOB;
    BEGIN
    SELECT MIME_TYPE, PHOTO_BLOB_CONTENT, PHOTO_FILENAME,DBMS_LOB.GETLENGTH(photo_blob_content)
    INTO l_mime,lob_loc,l_file_name,l_length
    FROM wsemployee
    WHERE empid = p_image_id;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    owa_util.mime_header( nvl(l_mime,'application/octet'), FALSE );
    -- set the size so the browser knows how much to download
    htp.p('Content-length: ' || l_length);
    -- the filename will be used by the browser if the users does a save as
    htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(l_file_name,instr(l_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( Lob_loc );
    END my_image_display;
    Edited by: user13831927 on Dec 22, 2012 3:24 PM

    Hi Ying,
    you can add a UDF to the table spp2 with a programm
    but the table is not yet listed in the 'Manage User Fields' form.
    there's no way to "enable" it - sorry

  • [Forum FAQ] How to display an image from Http response in Reporting Services?

    Question:
    There is a kind of scenario that users want to display an image which is from URL. In Reporting Services, if the URL points to an image file, we can directly display it by typing the URL in embedded image. However, some URLs are just sending Http requests
    to server side, then redirect to another position and the server will return the image. For these kind of URLs, Reporting Services can’t directly render the image from Http response.
    Answer:
    To achieve this goal, we can add custom code into the report. Pass the URL as argument into our custom function so that we can create HttpRequest and get the HttpResponse. Then we can use custom function to return the Bytes() from the HttpResponse and render
    it into an image in report.
    Ps: In Reporting Services, it only support drawing Bytes() array into image, so we need to have our custom function return Bytes array.
    Add the assembly and custom code into the report.
    Public shared Function GetImageFromByte(Byval URL as String) As byte() 
                    Dim photo as System.Drawing.Image 
             Dim Request As System.Net.HttpWebRequest 
           Dim Response As System.Net.HttpWebResponse 
                  Request = System.Net.WebRequest.Create(URL)         
                     Response = CType(Request.GetResponse, System.Net.WebResponse) 
                 If Request.HaveResponse Then  
                      If Response.StatusCode = Net.HttpStatusCode.OK Then                    
                           photo = System.Drawing.Image.FromStream(Response.GetResponseStream) 
                     End If 
                 End If 
                  Dim ms AS System.IO.MemoryStream = new System.IO.MemoryStream() 
                 photo.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg) 
                    Dim imagedata as byte()  
                    imagedata = ms.GetBuffer()  
                    return imagedata
    End Function
    Grant the permission for assemblies. 
    Go to: 
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\RSpreviewPolicy.config 
    C:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\ReportServer\rssrvpolicy.config
    Give “FullTrust” for Report_Expressions_Default_Permissions.
    Insert an image into report. 
    Expression:
    =Code.GetImageFromByte("https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcSrVwPoAtlcA2A3KaiAJi-XjS4icr1QUnKYr7uzpX3IL3g2GPisAQ")
    The Result looks below:
    Applies to:
    Reporting Services 2005
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012
    Reporting Services 2014
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    >
    Hi, I'd like to display a dynamic image from the web inside a JLabel or any other swing component it could work in. I've been looking on the Swing tutorials and others forums, all I can have is that a JLabel can load an Icon object, defined by an image URL, but can this URL be like "http://xxxxx/image.jpg" somehow or can it only be a local image URL?>
    I do not know why you start talking about an image on the web then go on to show concerns about whether it will work for a 'local' URL.
    But perhaps this answer will cover the possibilities.
    So long as you can from an URL to the image, and the bytes are available for download (e.g. some web sites wrap a direct call to an image in HTML that embeds the image), the URL based icon constructors will successfully load it.
    It does not matter if that URL points to
    - a web site,
    - a local server ('localhost'),
    - an URL representation of a File on the local file system, or
    - it is inside a Jar file that is on the application's run-time classpath.
    How you go about forming a valid URL to a 'local resources' (or indeed what you regard as local resources) is another matter, depending on the form of the project, and how the resources are stored (see list above).
    Probably the main reason that examples use images at a hard coded URL on the net is that it makes an 'image example' self contained. As soon as we compile and run it, we can see the result. I have posted a few examples like that on these forums.
    Edit 1:
    BTW - Welcome to the Sun forums
    Edited by: AndrewThompson64 on Apr 21, 2009 12:15 PM

  • I want to display BLOB image in JSP Using  html tags IMG src=

    GoodAfternoon Sir/Madom
    I Have got the image from oracle database but want to display BLOB image using <IMG src="" > Html tags in JSP page . If it is possible than please give some ideas or
    Send me sample codes for display image.
    This code is ok and working no problem here Please send me code How to display using html tag from oracle in JSP page.
    <%@ page import="java.sql.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="javax.swing.ImageIcon;" %>
          <%
            out.print("hiiiiiii") ;
                // declare a connection by using Connection interface
                Connection connection = null;
                /* Create string of connection url within specified format with machine
                   name, port number and database name. Here machine name id localhost
                   and database name is student. */
                String connectionURL = "jdbc:oracle:thin:@localhost:1521:orcl";
                /*declare a resultSet that works as a table resulted by execute a specified
                   sql query. */
                ResultSet rs = null;
                // Declare statement.
                PreparedStatement psmnt = null;
                  // declare InputStream object to store binary stream of given image.
                   InputStream sImage;
                try {
                    // Load JDBC driver "com.mysql.jdbc.Driver"
                    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
                        /* Create a connection by using getConnection() method that takes
                        parameters of string type connection url, user name and password to
                        connect to database. */
                    connection = DriverManager.getConnection(connectionURL, "scott", "root");
                        /* prepareStatement() is used for create statement object that is
                    used for sending sql statements to the specified database. */
                    psmnt = connection.prepareStatement("SELECT image FROM img WHERE id = ?");
                    psmnt.setString(1, "10");
                    rs = psmnt.executeQuery();
                    if(rs.next()) {
                          byte[] bytearray = new byte[1048576];
                          int size=0;
                          sImage = rs.getBinaryStream(1);
                        //response.reset();
                          response.setContentType("image/jpeg");
                          while((size=sImage.read(bytearray))!= -1 ){
                response.getOutputStream().write(bytearray,0,size);
                catch(Exception ex){
                        out.println("error :"+ex);
               finally {
                    // close all the connections.
                    rs.close();
                    psmnt.close();
                    connection.close();
         %>
         Thanks

    I have done exactly that in one of my applications.
    I have extracted the image from the database as a byte array, and displayed it using a servlet.
    Here is the method in the servlet which does the displaying:
    (since I'm writing one byte at a time, it's probably not terribly efficient but it works)
         private void sendImage(byte[] bytes, HttpServletRequest request, HttpServletResponse response) throws IOException {
              ServletOutputStream sout = response.getOutputStream();
              for(int n = 0; n < bytes.length; n++) {
                   sout.write(bytes[n]);
              sout.flush();
              sout.close();
         }Then in my JSP, I use this:
    <img src="/path-to-servlet/image.jpg"/>
    The name of the image to display is in the URL as well as the path to the servlet. The servlet will therefore need to extract the image name from the url and call the database.

  • Displaying an image in jsp / servlet

    Hi, I am trying to display an image from database to be displayed in the servlet
    following is my code
    package image;
    import java.io.*;
    import java.text.*;
    import java.util.*;
    import java.sql.*;
    import java.awt.*;
    import java.awt.image.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.PrintWriter;
    import com.sun.image.codec.jpeg.*;
    public class BlobImageServlet extends HttpServlet
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    String idStr="";
    String buffString="";
    InputStream is;
    byte[] buffer=null;
    Connection conn = null;
    //Statement stmt =null;
    CallableStatement stmt;
    ResultSet rs;
    //BlobStudentInfo bInfo = null;
    //Class.forName("com.sybase.jdbc2.jdbc.SybDriver");
    //idStr = (String)request.getParameter("id");
    //bInfo = (BlobStudentInfo)request.getAttribute("binfo");
    try {
    //stmt = conn.getConn().createStatement();
         Class.forName("com.sybase.jdbc2.jdbc.SybDriver");
         conn = DriverManager.getConnection("jdbc:sybase:Tds:dbserv.com.xyz.edu:4444/mydb","user","pwd");
         stmt = conn.prepareCall("{call dbo.getimage(?)}");
         stmt.setInt(1,10);
         stmt.execute();
    stmt.getMoreResults();
    rs = (ResultSet) stmt.getResultSet();
    while (!rs.isFirst()) {
    rs.next();
    buffer = rs.getBytes("image");
    // rs = stmt.executeQuery("select image from photo where indexing =10");
    if (rs.equals(null)){
         System.out.println("Resultset is not null");
    }else System.out.println("RS is not null");
    //while (rs.next());{
         // buffer = rs.getBytes("image");
    stmt.close();
    rs.close();
    //conn.closeConnection();
    } catch(SQLException sqe){
    while (sqe != null) {
    System.out.println("BlobImageServlet: SQLException: " + sqe.getMessage());
    //e.printStackTrace();
    sqe = sqe.getNextException();
    } catch (Exception e) {
    System.out.println("BlobImageServlet: Exception !!");
    e.printStackTrace();
    //buffer = bInfo.getHeadshot();
    JPEGImageDecoder decoder = JPEGCodec.createJPEGDecoder(new ByteArrayInputStream(buffer));
    BufferedImage image = decoder.decodeAsBufferedImage() ;
    response.setContentType("image/jpeg");
    // Send back image
    ServletOutputStream sos = response.getOutputStream();
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(sos);
    encoder.encode(image); // writes the image to browser
    } //doPost closed
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException
    doPost(request, response);
    and the corresponding procedure is
    create procedure dbo.getimage
    @indexing int
    as
    select image from dbo.photo where indexing = @indexing
    Whenver I try to run the servlet as http://localhost:8080/Test/BlobImageServlet
    I get null pointer exception
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    java.lang.NullPointerException
         java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:89)
         image.BlobImageServlet.doPost(BlobImageServlet.java:72)
         image.BlobImageServlet.doGet(BlobImageServlet.java:86)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
    Please let me know if you have any questions.

    When we see the following code
    response.setContentType("image/jpeg");
    we can only view the images from database that were stored of jpeg but not of gif.
    Like gif images stored in binary format doesnt allow us to view back the images instead give some exceptions like
    com.sun.image.codec.jpeg.ImageFormatException: Not a JPEG file: starts with 0x42 0x4d
         sun.awt.image.codec.JPEGImageDecoderImpl.readJPEGStream(Native Method)
         sun.awt.image.codec.JPEGImageDecoderImpl.decodeAsBufferedImage(JPEGImageDecoderImpl.java:210)
         image.BlobImageServlet.doPost(BlobImageServlet.java:67)
         image.BlobImageServlet.doGet(BlobImageServlet.java:80)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    If I have to veiw a gif image from the database it doesnt allow me to do so giving jpeg exceptions.
    I have put a javascript asking the uploaders to load only jpeg files.
    but i would be happy if it was generic. Is there any solution.
    Regards
    Sandeep.

  • JPG won't display in Image box.

    Trying to add a logo in JPG format to the top of the form using the Image control, but it won't display the image nor print it. If I use a GIF file it works fine, but looks horrible. I'm new at this, any ideas?

    I finally figured it out after posting another frustrating comment to this thread. I can't take the credit, however, as it was quickly solved by Irv Kanode in another thread. I have copied his exact post below. It solved this issue in seconds:
    ADOBE SUPPORT REPLY:
    Irv Kanode - 4:15pm May 5, 06 PST (#1 of 2)
    Check some of your JPEGs for CMYK vs RGB.
    Might the ones that fail be CMYK and the ones that work be RGB?
    When images don't work are you seeing a broken image icon or...?
    Irv
    Adobe Support
    USER FOLLOWUP TO ADOBE SUPPORT SUGGESTION:
    Kurt Wedberg - 5:27pm May 5, 06 PST (#2 of 2)
    Irv,
    Thanks for the reply. The images that didn't work were CMYK. When I converted to RGB they worked.
    The images that didn't work were coming up with random grey scale colors.
    Thanks again,
    Kurt
    Hope this helps everyone!

  • How to display user profile information in master page header

    I am trying to display user profile info like following in custom master page.
    I have just added a html code for displaying this info.
    Now, please tell me how could i achieve this
    I am doing this in sharepoint 2013 on-premise.

    see below is example for javascript and userprofile information
    <script type="text/javascript">//<![CDATA[
    $(document).ready(function
    var currentUser;
    // Ensure that the SP.js is loaded
    if (SP.ClientContext
    != null)
    SP.SOD.executeOrDelayUntilScriptLoaded(getCurrentUser,
    'SP.js');
    else
    SP.SOD.executeFunc('sp.js',
    null, getCurrentUser);
    function getCurrentUser()
    var context = new SP.ClientContext.get_current();
    var web = context.get_web();
    currentUser = web.get_currentUser();
    context.load(currentUser);
    context.executeQueryAsync(onSuccessMethod, onRequestFail);
    function onSuccessMethod(sender, args)
    var account = currentUser.get_title();
    var currentUserAccount = account.substring(account.indexOf("|")
    + 1);
    var currentUserAccountUnderScore = currentUserAccount.toLowerCase().replace(/\s/g,
    //alert(currentUserAccount);
    $("#username").text(currentUserAccount);
    $("#ProfileImage").attr("src",
    "https://mydomain-my.sharepoint.com/User%20Photos/Profile%20Pictures/"
    + currentUserAccountUnderScore +
    "_mydomain_onmicrosoft_com_MThumb.jpg");
    $("#ProfileImage").attr("alt", currentUserAccount
    + " User Profile Image");
    $("#ProfileImage").attr("class",
    "ss-profile-image");
    //This function runs if the executeQueryAsync call fails.
    function onRequestFail(sender, args)
    alert('request failed' + args.get_message()
    + '\n' + args.get_stackTrace());
    $("#ProfileImage").attr("src",
    "https://mydomain.sharepoint.com/SiteAssets/userImageDefault.jpg");
    //]]>
    </script>
    -Nilesh

  • How to show current logged in user image in Master Page

    Hi,
    I am trying to show logged in user image next to his name, following this article 
    http://erikswenson.blogspot.in/2011/04/display-user-profile-picture-next-to.html
    I am trying to do this in SharePoint 2013, so i put Reference
    in .Master file & Control in . html file
    Picture is not visible and when i tried to find whether the control has been loaded or not, the control also hasn't been loaded.
    Please tell me, how could i do this?

    This is not that hard to do, simply go into your masterpage (Design Manager) and copy and paste this on the top of the page:
    <%@ Register tagprefix="SPSWC" namespace="Microsoft.SharePoint.Portal.WebControls" assembly="Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    Once that is done, you can now add this:
    <SPSWC:ProfilePropertyLoader runat="server" />
    <SPSWC:ProfilePropertyImage PropertyName="PictureUrl" ResizeToFit="115" ShowPlaceholder="true" id="PictureUrlImage" runat="server"/>
    To the location where you want the image to be shown. If you have a custom HTML page that you built out, just add it the same way. Let me know if you have any questions.
    -G

  • How to display an image located in the WEB-INF directory?

    Basically, When a user registers, they a directory is created with their username that holds images that they can upload. How do I display those images. All I am holding in the database is the location of the images.
    ive tried
    <img src="/WEB-INF/users/testuser/picture.jpg" />
    but this doesnt work and for obvious security reasons shouldnt.. but is there another way of doing what i want to do? perhaps a custom tag? thanks
    Jazz

    You would have to write a generic servlet that would return an image
    <img src="/getImage?user=testuser&pic=picture.jpg" />Your servlet would basically fetch the file from under web-inf, and then stream it back to the user.
    Methods to use:
    servletContext.getRealPath() (to help find the file on disk), relative to your web app
    getOutputStream (as opposed to getWriter)
    It is only in this way that you can access files on the server outside of the public web directories.
    Hope this helps
    Cheers,
    evnafets

  • How to retain focus in Web forms 6i item when displaying pdf image

    How to retain focus in Web forms 6i item when displaying pdf image in a multi-record block?
    Hello.
    I have a Web Forms 6i program (version Forms 6.0.8.19.2) running in a 3-tier application. The web form program has a multi-record block containing invoices. When navigating to a record, the form should display the PDF invoice image which is stored in an Oracle 8.1.7 database as a BLOB in another window. When user press down-arrow, the next PDF invoice image should be displayed.
    I am able to accomplish the functionality above by using web.show_document('URL', target') in the when-new-record-instance. The URL being called is a PL/SQL Web Toolkit stored procedure using wpg_docload.download_file built-in.
    The problem is that the focus is lost on the Webform and the focus is shifted to the PDF image window when you navigate to the next record using down-arrow. I want to retain the focus in the form as this is a data-entry form, the operator will use down-arrow to go to the next-record rather than the mouse. I also only want to do this for this Invoice Entry form and NOT to all forms.
    Please advise how to resolve this problem. Thank you.
    Regards,
    Armando

    Magesh,
    the issue of a SSO protected form showing the logon dialog is a knwon issue for Windows200 and the Oracle9iAS base release. If you applied Forms Patch 1 then this should be solved. Hope that I am right in that you are using Oracle9iAS and not Oracle9iDS. Do you see the Single Sign-On logon screen or the Forms logon dialog directly? Check the forms90.conf file in teh forms90/server directory as this contains the Form sso settings (mod_osso) which by default is commented out and therefore inactive. You need to remove the commenting '#' characters and make sure that each sentence having a '#' in front, after that starts on a new line.
    The Forms deployment documentation within the Oracle9iAS docu provides this information too.
    Frank

Maybe you are looking for

  • Same Apple ID, two devices. How do I have different iMessage accounts on each?

    I share an Apple ID with my brother, but since we have separate devices, I want to separate our iMessages. I have already put both email addresses on them, and changed setting so that it says we are only receiving for one on each ipad, but I am still

  • I'm missing the back cover and flap for my book. Doesn't show up in the interface. How can I restore these?

    I'm missing the back cover and flap for my book in the layout interface. Does anyone know how to restore these?  I've searched the interface but can't find an option to add cover/flap. Don't want to order a book without it. Any advice is welcome!

  • Sending a google image in body of my e-mail.

    I want to send a photo from google images in an e-mail from my Apple to a receiver with Windows. I recently got an Apple MacBook Pro after using Windows. I was able to copy and paste an image and put it into the body of the e-mail when I had the PC.

  • Process Chain/OS command issue

    Hello, I am trying to execute a command similar to the following in an OS command in a process chain: cp /path/filename*.txt /path/filenamexxx.txt I know it's not a permissions problem. This is the error message from the Process Chain Maintenance Log

  • DMEE tab-delimited file required

    Dear Experts with trx DMEE you define file formats to be used as payment medium on screen 'format attributes' you indicate if fields have a fixed length or are delimited with a character what to do when you want to have a tab-delimited file? Regards