Access image from jspdynpage

I am trying to access the image from jspdynpage.  I placed image at dist/images folder of my EP project.  I export the par to the server.  I used the src path for the img element is "images/demo1.jpg".  It is displaying in my jsp page.  Help is appreciated.  I have another quesiton is that can I place all images in one of the directory.  From jspDynpage can we access these images or not?
-Sudheer.

Sudheer,
   You could do the following.
<% String img = componentRequest.getWebResourcePath() + "/images/demo1.jpg"; %>
<img border="0" src=<%=img%> width="50" height="50">

Similar Messages

  • How can I access images from IPhoto on my Mac to Photoshop CS6

    How can I access images from IPhoto library on my Mac to Photoshop CS6?  I enable jpg with format "Photoshop" and this is what comes up -  "Could not complete your request because Photoshop does not recognize this type of file" 

    MountainArtist wrote:
    …I enable jpg with format "Photoshop" and this is what comes up -  "Could not complete your request because Photoshop does not recognize this type of file" 
    Photoshop is not a format.  It's an application.
    What you are looking at are not true JPEGs, just iPhoto's "tease" representations of the hidden images it swallowed, as explained above.

  • How can I update Camera raw for Photoshop CS5 to access images from Canon Rebel T4i?

    How can I update Camera Raw for Photoshop CS5 to access images from Canon Rebel T4i? The updated version of Camera Raw 7 says it only works with CS6. Outside of buying a new Photoshop, is there anything I can do?

    Buy Lightroom (much cheaper alternative to Photoshop) - does all your 'Photo-related' tasks. Full version of LightRoom 4 is $149/- - http://www.adobe.com/products/photoshop-lightroom.html
    LightRoom 4 supports ACR (Adobe Camera Raw) 7. Once processed with Lightroom, if you still need, you could take the photo in JPG or TIFF format into Photoshop CS5 for further processing.
    Another option is to use Canon Raw Codec that would've come with your camera's box to process the RAW images and then take them into Photoshop.

  • Accessing images from shared components

    I am having problem finding out images from shared components. After loading my images from my desktop to shared components folder, when i try to create an image item, and click the browse button, it pulls out my hard drive for selection. i don't know how to get the images already in shared components. i read in the help file that if i know the name of the image, then i can write it down and portal will pull it out. but what if i don't remember. do i have to go to shared components to find what it is and then come back and write it in the textbox?how to get to shared components clicking browse and selecting the image we want which is already stored in portal?
    thanks
    valli

    There's no way to browse and select the images in shared components. You need to know the URL to the image if you want to reference it in an item.

  • Accessing image from dist/imgaes folder inside JSPDynpage Component

    Hi,
    I have a sceanario where I want to access JPG image stored in dist/images folder inside JSPDynpage Component java file.
    It is ok if I get it in the form of a byte array (byte[]).
    Any idea how to achieve it?
    Please help.
    Thanks and regards,
    Amey Mogare

    >
    Amey Mogare wrote:
    > Hi Clemens,
    >
    > Thank you. It worked.
    >
    > For my surprise, Isolation mode of iView is Embedded, but still it wasn't working for me!
    >
    > I tried your code and it worked!
    >
    >        IResource res = request.getResource(IResource.IMAGE, "images/draft.jpg");           
    >      String myServerPrefix = "http://mytest.com";
    >      String url = myServerPrefix + res.getResourceInformation().getURL(request);     
    >
    >
    > Now, can you tell me how to I get rid of this hard-coding server URL?
    >
    > Thanks and regards,
    > Amey Mogare
    Hi Arney,
    maybe you should first also give the suggestion of ram another chance, because you can also use it in your class code:
    String url = request.getWebResourcePath() + "/images/draft.jpg";
    Otherwise to avoid the hardcoding you can either perform configuration in your portalapp.xml with the server prefix and read it out, or write a little method that retrieves your server name. This is however not as trivial as it might look like. I personally have a method like follows:
    public String getBasePortalUrl(IPortalComponentRequest request) {
         StringBuffer requestURL = request.getServletRequest().getRequestURL();
         //Parse the server name,port etc. out of this request url, depending on your system environment
         //Normally you parse till you get to /irj

  • How access images from iPhoto Library?

    I appear to have done something terrible with one of my iPhoto libraries.
    Over the holidays, as I recall, I had attempted to move the iPhoto library from the computer to an external hard drive.
    This particular library, now on the external drive, shows 266 gigabytes in the finder, but I can't access any of the images.
    So, something appears to be in the iPhoto library, but something may be missing that permits access.
    If there's no hope of recovery of 2 years of images, should I just delete the library -- and lose all images forever?
    Or, is there some hope or method of recovery?

    Well it wouold really help if you told us that version of iPhoto you have - and exactly what you did? and exactly what is happening?  we know nothing at all about your or your system except what you tell us - which at this stage is only that you have a problem of some sort.
    The only wild guess I can make at this time it for you to depress and hold the option key and launch iPhoto and select the library on the external drive.
    LN

  • Rescuing and/or Accessing Images From Aperture Database Without Aperture

    Early reviews of Aperture mentioned that Aperture created a closed, inaccessible database of all the images contained therein. This apparently means that these images cannot be accessed unless you have Aperture. Does anyone else feel nervous about this? What happens if the Aperture database is corrupted and won't open? As far as I can see, you would be toast because you couldn't reach your images. I would appreciate hearing from someone who can address these concerns. How stable is the Aperture database? Is there a chance it could be corrupted and refuse to open? And if so, how would you go about rebuilding it and/or rescuing your images? It also appears that the only way you can move images is by exporting them (which requires a working program).
    Any thoughts?

    No problem! Trying to answer these questions is a very helpful way to learn the app by looking at aspects of it I have not encountered yet.
    Yes, you can rebuild the Aperture database in a similar way to Entourage (and iPhoto). Holding down command-option after launching Aperture will make a Rebuild Library dialog appear. HOWEVER, don't do this unless you really want to see it work, because there seems to be no way to cancel the process. You can choose Rebuild Now or Don't Rebuild. If you choose Don't Rebuild, your Projects will nonetheless need to be recovered before use. The dialog mentions a Rebuild Later button, but there is no such button available.
    I have done this a few times both ways in the course of writing this, and there does not seem to be any negatives to rebuilding other than the time rebuilding takes, so if your projects aren't large it may be worth doing now to get comfortable with the process.
    G5 Dual 2.7   Mac OS X (10.4.3)  

  • Accessing images from content areas

    I have added an image item to a content area. I want to use this image elsewhere as part of an image rollover in a portlet. How do I gain access to tehis image so it can be used as part of a javascript routine?

    Gerry,
    You can create a logical URL to the image. Check the Portal online help for the topic "Direct Access URL". The Direct Access URL for any item is displayed in its property sheet. The property sheet can be displayed by editing the Folder Style/Folder Layout.
    You can also get the image's physical URL by right-clicking on the image and viewing its properties (in IE).
    Regards,
    Jerry
    null

  • Accessing Image from oracle to VB.

    How can access the stored image in oracle 8.0 table to Visual BASIC 6.0.?
    PLease give me the help regarding to its supporting file , if it is using any file, like ocx, dll etc.
    And also give me the links for getting its ocx and dll files.

    Here's an Oracle Magazine article that illustrates how to display an image stored as a blob in the database on a Windows Form:
    http://www.oracle.com/technology/oramag/oracle/05-nov/o65odpnet.html
    Perhaps that will be enough to get you going in the right direction.
    - Mark

  • Installed Camera Raw update, still cannot access images from Canon G15

    The download statement said it was upgraded but, when I tried opening the RAW files, there was still nothing accessible.

    Buy Lightroom (much cheaper alternative to Photoshop) - does all your 'Photo-related' tasks. Full version of LightRoom 4 is $149/- - http://www.adobe.com/products/photoshop-lightroom.html
    LightRoom 4 supports ACR (Adobe Camera Raw) 7. Once processed with Lightroom, if you still need, you could take the photo in JPG or TIFF format into Photoshop CS5 for further processing.
    Another option is to use Canon Raw Codec that would've come with your camera's box to process the RAW images and then take them into Photoshop.

  • I am trying to import developed images from LightRoom 5 in o Photoshop 6.  I am receiving this message and the images will not open.....'Could not open scratch file because the file is locked, you do not have necessary access permissions or another progra

    I am trying to import developed images from LightRoom 5 Photoshop 6 for further editing.  I am receiving this message and the images will not open.....'Could not open scratch file because the file is locked, or you do not have necessary access permissions or another program is using the file.  Use the 'Properties' command in the Windows Explorer to unlock the file. How do I fix this?  I would greatly appreciate it if you would respond with terms and procedures that a computer ignorant user, such as me, will understand.   Thanks.

    Have you tried restoring the Preferences yet?

  • I am trying to softproof an image using a CMYK .icc file. I sent an image from LR 5 to PS CC 2014, opened the Camera Raw FIlter, but the hyperlink to access workflow is not showing up in the CR dialogue box... Any ideas why this might be?

    I am trying to softproof an image using a CMYK .icc file. I sent an image from LR 5 to PS CC 2014, opened the Camera Raw FIlter, but the hyperlink to access workflow is not showing up in the CR dialogue box... Any ideas why this might be?

    I am trying to softproof an image using a CMYK .icc file. I sent an image from LR 5 to PS CC 2014, opened the Camera Raw FIlter, but the hyperlink to access workflow is not showing up in the CR dialogue box... Any ideas why this might be?

  • I am trying to import developed images from LightRoom 5 into Photoshop 6.  I am receiving this message and the images will not open.....'Could not open scratch file because the file is locked, you do not have necessary access permissions or another progra

    I am trying to import developed images from LightRoom 5 into Photoshop 6.  I am receiving this message and the images will not open.....'Could not open scratch file because the file is locked, you do not have necessary access permissions or another program is using the file.  Use the 'properties' command in the Windows Explorer to unlock the file'.  This has not happened before.  How do I change this?

    Could not open a scratch file because the file is locked or you do not have the necessary access privileges. (…) | Mylen…
    Mylenium

  • How do i store and fetch image from the Database(Access)

    i am facing one problem in inserting the image into the database.the steps i followed as
    1)i have created one database(access) as "Image" and into that one table as "Image" and field as "image"
    type of the field is ole object.
    2)i have inserted one image into the image field through "database.vi"
    3)now i am trying to get the image from the database by "Fetching Example.vi"
    4)it will succesfully retrieve the image from that field .
    5)but when i close the both programs and reopen those that time i am unable to get retrieve the image.
    Attachments:
    Add_to_Database.vi ‏78 KB
    Fetch_from_database.vi ‏67 KB

    I would like to suggest different approach for saving the images in the database.
    I was working on Medical Imaging Company. The way we save the images in real-time was by writing the name and path of the images to database.
    The images themselves where saved directly to disk.
    I don�t think that access is very good in taking care of GBytes of data.
    It happens some time that the database gets damage. If you have the images separately you can create fix procedure. (We had one).
    Good Lack,
    Amit Shachaf,

  • Getting image from Microsoft Access database to display in browser

    Hey! anybody please help me
    I've been trying with no success to get an image from a microsoft access database
    so far this is what i have:
    package Servlets;
    import java.io.*;
    import java.net.*;
    import utils.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class serv extends HttpServlet {
        java.sql.ResultSet rs=null;
        ClsConexion conexion=new ClsConexion("Nedermex");
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            conexion.conectate("1", "1");
            rs=conexion.obtenRegSelect("SELECT * FROM Flores WHERE ID=1");
            try{
                rs.next();
                System.out.println("sadfsadf " + rs.getString("ID"));
            }catch(Exception e){
                e.printStackTrace();
            String ubicGIF = request.getParameter("ubicGIF");
            if((ubicGIF==null) || ubicGIF.length() == 0 ){
                indicarError(response, "Archivo de imagen no establecido");
                return;
            //String archivo = getServletContext().getRealPath(ubicGIF);
            try{
                if(rs.next()){
                    System.out.println("sadfsadf " + rs.getString("ID"));
                    BufferedInputStream ingreso = new BufferedInputStream(rs.getBinaryStream("Imagen"));
                   // BufferedInputStream ingreso = new BufferedInputStream(new FileInputStream(getServletContext().getRealPath("1.jpg")));
                    ByteArrayOutputStream flujoBytes = new ByteArrayOutputStream(512);
                    int byteImagen;
                    while ((byteImagen= ingreso.read()) != -1){
                        flujoBytes.write(byteImagen);
                    ingreso.close();
                    String indiPersistencia = request.getParameter("usePersistence");
                    boolean usePersistence = ((indiPersistencia == null) || (!indiPersistencia.equals("no")));
                    response.setContentType("image/jpeg");
                    if(usePersistence){
                        response.setContentLength(flujoBytes.size());
                    flujoBytes.writeTo(response.getOutputStream());
            }catch(IOException ioe){
                indicarError(response, "Error: " + ioe);
            }catch(java.sql.SQLException sqle){
                indicarError(response, "Error: " + sqle);
        public void indicarError(HttpServletResponse response, String mensaje) throws IOException {
            response.sendError(response.SC_NOT_FOUND, mensaje);
        // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
        /** Handles the HTTP <code>GET</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
        /** Handles the HTTP <code>POST</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
        /** Returns a short description of the servlet.
        public String getServletInfo() {
            return "Short description";
        // </editor-fold>
    }i have a class Conexion wich controls the connection and resultsets
    As you can see, i tested accessing a jpeg file: 1.jpg with FileInputStream, and it works perfectly, but when i try to get an image from Microsoft Access using the resultset the way i did, the browser shows the following message
    The image �http://localhost:8084/Nedermex/serv� cannot be displayed, because it contains errors.
    My table in the database in Access is configured as following
    FieldName::::::::::::::DataType
    ID::::::::::::::::::::::::::::::Number
    Imagen::::::::::::::::::::OLE Object
    Now, when i insert an image in the Imagen field, i select the option "Create from file" and select the jpg file (the one that worked with the FileInputStream) and uncheck the Link option (to save the data in the db
    maybe there is something wrong with the sizes or something....
    please help me here!!!
    thank you!

    Yes it is an sql question
    Consider this as my condition need to fetch records collected in database on 16-4-2012 
    Table name =TEST_REPORT
    i have passed the following query
    Select Serial_Number,System_Date,System_Time,Department,O​perator_Name,Serial_Number,Test_Case,Pass_Fail from TEST_REPORT  where System_Date = 4-16-2012, it displays the entire record from database. i have my vi along with this mail.
    Attachments:
    Report Viewer.vi ‏24 KB

Maybe you are looking for

  • Populating nextval into a variable

    Hi, I'm bulding a custom form with a dynamic page portlet. i would like to generate an hidden id field from a sequance i created in the database. How do i do that, when i try : theId NUMBER := iloug.iloug_tmp_seq.nextval; i get an error that says: OR

  • Is it possible in SAP that I can restrict a specific delivery with shipment

    Hi All, Is it possible in SAP that I can restrict a specific delivery can be attached with specific shipment? Example, I have a delivery type "A", which can only be attached with Shipment type "Z". Thanks in advance.

  • MI2.5 SP16 full version

    Hi , I have installed MI2.5SP13 Full version and add-on file updated to Sp16. I am facing problem with MIclient during generic Sync. Where can i get tomcat version MI2.5SP16 full version. Thanks a Lot Madhan

  • Empty address book on iMac, will syncing loose them on the iPhone too?

    My mom called me last night saying that her address book on her iMac is now empty. I don't know what she did to have that happen. My question is if she syncs her iPhone, which has all of her contacts, will the syncing delete all of her contacts on th

  • AppleWorks 6.0 Files Listed As Unix Executable Files. Unable To Open.

    A client of mine backed up a number of AppleWorks 5 & 6 files last week on a PowerMac w/ OS X 10.3. I reformatted the HD, upgraded the OS to 10.4 and attempted to reinstall AppleWorks 6.0. It would not allow installation. So, I installed OS 9 Classic