How to Upload Mutilple Images in content repository?

Hi
How to Upload Mutilple Images in content repository?
I have a html which shd be displayed and it has 3 images which shd be displayed
in the same page
Here i am able to display the HTML uploaded in content repository
but the images are not displayed,since the path is not valid for the images.
Can any one hint me in this,
wating for the reply
Thanks in Adv
Regards
Suresh

Suresh, your html specifies an image at resources/images/privacy.gif - is that
image in your repository at the correct relative position to where yout html is?
Your html and repository structure must match. So if the html you posted is at
/BEA Repository/foo.html
then privacy.gif must be at /BEA Repository/resources/images/privacy.gif
James
"Suresh" <[email protected]> wrote:
>
>
>
Hi James
Here i have attached my sample html and image
My Repository Structure is as follows :
Virtual Content Repository
BEA Repository
MainImage type image
Privacy type i created
----StartDate
----EndDate
----File Upload
My HTML
<HTML>
<HEAD>
<TITLE> New Document </title>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</head>
<BODY>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="norBold"><img src="resources/images/privacy.gif"
width="123"
height="73">Privacy
Policy</td>
</tr>
<tr>
<td class="formHeadBack" height="19"><b> Privacy Policy</b></td>
</tr>
</body>
</html>
and
one image
Thanks in Adv
Suresh
"James Owen" <reply.to@newsgroup> wrote:
Suresh, how is your content structured and what does your html looklike?
If you
could post examples, that would be helpful.
thanks,
James
"suresh" <[email protected]> wrote:
Hi
How to Upload Mutilple Images in content repository?
I have a html which shd be displayed and it has 3 images which shd
be
displayed
in the same page
Here i am able to display the HTML uploaded in content repository
but the images are not displayed,since the path is not valid for the
images.
Can any one hint me in this,
wating for the reply
Thanks in Adv
Regards
Suresh

Similar Messages

  • Uploading an image to MIME repository using upload UI element.

    Hello All.
    I am trying to upload an image to MIME repository using the upload UI element.
    How to achieve this.
    Rite now I am able to add it to the internal table but it is getting stored using some other name.
    I want it to get stored using the same name of the image file.
    Regards,
    SampathKumar.

    HI SampathKuma,
    could you please provide the steps/coding which you used? I have the same requirement..
    Thanks

  • How to upload an image in jsp page

    hi,
    I want to upload an image file with my jsp page, but i cannot do it,
    I have used Jakarta common file upload for this & i have also read following file. But my code isnot working properly? Can you give me any example how to upload an image & how to display it?
    Can u give me any source code? Please help me.
    http://jakarta.apache.org/commons/fileupload/using.htmlwith regards
    Bina

    Hi,
    But after writing the following code i have got following error? What's the problem of this code? please help me?
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    <%@ page import="org.apache.commons.fileupload.*" %>
    <%@ page import ="java.util.*" %>
    <%@ page import ="java.io.*" %>
    </head>
    <body>
    <%
    boolean isMultipart = FileUpload.isMultipartContent(request);
    DiskFileUpload upload = new DiskFileUpload();
    List items = upload.parseRequest(request);
    Iterator iter = items.iterator();
    while (iter.hasNext()) {
    FileItem item = (FileItem) iter.next();
    if (item.isFormField()) {
    String name = item.getFieldName();
    String value = item.getString();
    //ring name= request.getParameter("")
    %>
    <%= name %>:<%= value %>
    <%
    } else {
    %>
    <%
    InputStream stream = item.getInputStream();
    OutputStream bos =
         new FileOutputStream(getServletContext().getRealPath("/images"+"/"+ item.getName()));
    int bytesRead = 0;
    byte[] buffer = new byte[8192];
    while ((bytesRead = stream.read(buffer, 0, 8192)) != -1) {
    bos.write(buffer, 0, bytesRead);
    bos.close();
    stream.close();
    item.delete();
    %>
    </body>
    </html>Error is:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    FileUpload cannot be resolved
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    DiskFileUpload cannot be resolved to a type
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    DiskFileUpload cannot be resolved to a type
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    FileItem cannot be resolved to a type
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    FileItem cannot be resolved to a type
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    FileUpload cannot be resolved
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    DiskFileUpload cannot be resolved to a type
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    DiskFileUpload cannot be resolved to a type
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    FileItem cannot be resolved to a type
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    FileItem cannot be resolved to a type
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)Please help me.
    With regards
    Bina

  • HOW TO UPLOAD BACKGROUND IMAGES IN SMARTFORMS

    HI
    HOW TO UPLOAD BACKGROUND IMAGES IN SMARTFORMS

    Hi, 
       goto se78 -> in the menubar click graphic  and import to select ur images from ur system .. then click transport button .. it automatically gets into the smartform graphic image list.. then get into transaction smartform and use the image u imported into that..
    U can import anykind  of image which u have stored in ur pc through se78..
    Regards,
    Priya.

  • How to upload a image or flash file as blob object in a table.

    How to upload a image or flash file as blob object in a table.
    What are all the possible ways we can do it.

    Searching the forum (or google) would be my first choice, as this question pops up every now and then.
    Next without knowledge of your environment (jdev version and technology stack) it's hard to give a profound answer.
    All I can say is that it's possible.
    Timo

  • How to upload the image and diplay the image in the browser using jsp

    How to upload the image and diplay the image in the browser using jsp
    thanks
    shan

    i'll suggest looking for sample code or tutorial with a relevant query in google, which as far more time than us to answer this type of reccurent question

  • How to upload background image in Theme Editor

    Hi
    I want upload an image to theme
    I try by the theme edit i'ts not work
    I try by Edit "Right to Left" Theme Images
    I don't find the button "Upload"
    please Help!!!!
    How to upload background image in Theme Editor without to entry to the server
    Regards
    Yossi

    Hi
    Thank you for response
    I want upload to TransparentContainer Image in background
    I change the design to Plain
    I Try Upload by the browse in the theme
    but The image is not upload
    even if i delete the chace  serever
    i'ts not working

  • How to upload an image to EBS file server (Not store in database) with OAF?

    Dear all,
    I can upload an image into database with blob type. But I want to know how to upload an image to EBS file server. I try to search the forum but I cannot find the solution I want.
    Anybody can reallize it? Please give me some advice or idea?
    Thanks.
    Kenny

    Kenny,
    Framework doesn't provide the option of storing the images as files. You can write a javascript to open a popup and provide a standard HTML file upload component which will save the file on specified location.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to upload a image file ....

    Hi
    Need some tips ....
    How to upload a image file?
    How to limit the size of the file?
    if the image is big in size means how to make it small ?
    Is it possible of compressing the file before storing ..?
    thanks in advance
    kumar

    You may find the following articles useful for the JSP/Servlet part:
    Uploading files: http://balusc.blogspot.com/2007/11/multipartfilter.html
    Downloading files: http://balusc.blogspot.com/2007/07/fileservlet.html

  • How to fetch mpg file from content repository

    Hi All,
    I have uploaded a mpg(video) file in content repositoy. But I am not able to fetch
    it and display it using embed tag.
    is anybody aware of a right method to do the same?
    Thanks in advance.

    I was thinking there might be a difference in how the browser handles a
    path with a space when typed into the address bar vs. how the browser
    plugin/activex-object handles a path with a space when it gets it from
    the <param> or <embed> tag.
    Otherwise, I'm not sure what's going on. How content displays on
    someone's computer mostly depends on the persons's computer, how it's
    configured, what's installed, etc. If you can get the Node's BinaryValue
    from the WLP server and it has the correct ContentType and the correct
    bytes, then, at that point, WLP is no longer really involved.
    Do PDFs, word docs, audio, shockwave, and other binary media types
    stored in a WLP content repository display correctly with
    <object><embed> tags in your browser?
    Vijay wrote:
    Hi Gregory Smith,
    There is no problem with path at all. The same path if I write in address bar
    of browser it opens a widows media player and plays the video file.
    Pls suggest.
    Vijay B.
    Gregory Smith <[email protected]> wrote:
    See if using a path of
    http://etgjw4:7001/JWWebApp/ShowBinary/BEA+Repository/Ads/AdsPopup/ad1//image
    (note the + between BEA and Repository) changes anything. If so, you
    can
    use the com.bea.content.manager.ContentHelper.pathInfoEncode() method
    to
    URLEncode the node path, e.g.
    http://etgjw4:7001<%=request.getContextPath()%>/ShowBinary<%=ContentHelper.pathInfoEncode(node.getPath())%>//image
    or, the <cm:getProperty> tag supports this automatically, e.g:
    http://etgjw4:7001<%=request.getContextPath()%>/ShowBinary<cm:getProperty
    name="cm_path" node=<%=node%> conversionType="url"/>//image
    (You might need to double check that code in workshop to make sure it
    compiles).
    Greg
    Vijay wrote:
    Hi Gregory,
    When I type the repository path //property name in the browser's addressbook,
    It opens a windows media player and plays the video file.
    But when I copy the same path and paste it in embed/object tag it justloads up
    a windows media player. When I see the error details it says "Cannotopen. Please
    verify that the path and filename are correct and try again." Thereis a advanced
    button on error window clicking on that it shows "The specified streamtype is
    not recognized. (Error=C00D07E2)
    Cannot open. Please verify that the path and filename are correctand try again.
    (Error=C00D07E2)".
    can you give me a solution on this?
    The HTML code that I have written is attached to this query.
    Thanks alot,
    Vijay
    Gregory Smith <[email protected]> wrote:
    First, make sure the BinaryValue of the property of the Node has the
    correct content-type (should be video/mpeg, or similar). This can be
    in
    1 of the following ways:
    1. Look in the BLOB_CONTENT_TYPE column of the CM_PROPERTY table.
    2. Get the Node (e.g. with <cm:getNode>), then get the BinaryValue
    (with
    <cm:getProperty>), and call the getContentType() method of the BinaryValue.
    3. Show the ShowBinaryServlet on the Node in the browser and see what
    your browser does. The URL would probably be something like
    http://<server>:<port>/<webapp>/ShowBinary/<path to node>, e.g.
    http://localhost:7001/sampleportal/ShowBinary/BEA+Repository/mynode.
    You
    can bring up the properties for that in IE, or Page Info (Ctrl-I) in
    Mozilla; that should tell you the content type the browser received.
    If it's not something like video/mpeg, then that's why it's not working.
    Make sure you browser has support of mpegs in <embed> by creating a
    simple html file with an <embed> to an mpeg file (don't use the server
    at all). If that works and the content-type of the node is correct,you
    should be to create an html file with an <embed> to the URL in #3 above,
    e.g.
    <embed
    src="http://localhost:7001/sampleportal/ShowBinary/BEA+Repository/mynmode">
    </embed>
    If that works, make sure your jsp is generating the correct HTML.
    Greg
    Vijay wrote:
    I am using weblogic 8.1.
    Gregory Smith <[email protected]> wrote:
    What version of WLP are you using?
    Vijay wrote:
    Hi All,
    I have uploaded a mpg(video) file in content repositoy. But I am
    not
    able to fetch
    it and display it using embed tag.
    is anybody aware of a right method to do the same?
    Thanks in advance.
    New Web Application Page

  • How to upload the image after Cropping or rotation

    i have developed the applet for image rotation and cropping at the client side.i am able to do the all operation at client side but my problem is to how upload those file to server.please any one help me regarding this issue because i am new to java technology

    here by i posted my html page.here what actualy happening is first user selects the number of image to be upload.then i will create that much applet.here user will clicks on applet to select the image then he will do the all the operation.then user will clicks on submit to subit the image.here hidPath contains path information about the image but not the file ex (d:\image\image.jpg).if i submit this hidden variable to server i cannot get the file but i will get only the path info.but i know if i use <input type=file> then i can upload this image without any problem.so please go through this code and send me what all the necessary changes i have to make
    <HTML>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
    <TITLE></TITLE>
    </HEAD>
    <BODY>
    <P>Please Enter the Number of image you are going to submit
    <form name="frm">
    <INPUT id=text1 name=text1>   <INPUT id=Submit type=button value=Submit name=Click onclick='fun_app()'>
    </form>
    </BODY>
    </HTML>
    <SCRIPT LANGUAGE=javascript>
    <!--
    function fun_app()
         document.write("<html>");
         document.write("<body>");
         document.write("<form name='frm1' method='post' enctype='multipart/form-data'>");
              for(var i=1;i<=val;i++)
                   //     alert('<applet code="ImageUploadControl.class" archive="test.jar" width="400" height="430" viewAsText id=Applet'+i+'> <param name="imginit" value="DSC00983.JPG"></applet>');
                        document.write('<applet code="ImageUploadControl.class" archive="test.jar" width="445" height="430" viewAsText name=Applet'+i+'> <param name="imginit" value="sos-logo-xsmall.jpg"></applet>');
                        document.write("      ");
         document.write("<input type='hidden' name='hidPath' value=''>");
         document.write("<input type='button' name='btnSubmit' value='Submit' onclick='imgSubmit()'>");
         document.write("</form>");
         document.write("<SCRIPT LANGUAGE=javascript>");
         document.write("function imgSubmit()");
         document.write("{");
         document.write("var numApp=0;");
         for(var j=1;j<=val;j++)
              document.write("if(document.Applet"+j+".strPath()!='strNull')");
              document.write("{");
              document.write("if(document.frm1.hidPath.value=='')");
              document.write("document.frm1.hidPath.value=document.Applet"+j+".strPath();");
              document.write("else");
              document.write("{");
              document.write("document.frm1.hidPath.value=document.frm1.hidPath.value+'&&';");
              document.write("document.frm1.hidPath.value=document.frm1.hidPath.value+document.Applet"+j+".strPath();");
              document.write("}");
              document.write("}");
         document.write("document.frm1.action='https://blretd02/imageupload/upload/uploadim.aspx';");
         document.write("document.frm1.submit();");
         document.write("}");
         document.write("</SCRIPT>");
         document.write("</body>");
         document.write("</html>");
    //-->
    </SCRIPT>

  • How to upload an Image in the front end application

    Hi friends,
    I have a requirement in the sense, soon after i login into the application with the username and password....
    I will be having an file browse item, in which i need only to upload the images, soon after selecting the picture and if i give upload means, the picture has to populate immediately above the browse item in the front end itself......
    How to achieve it friends, i dont have idea in uploading the images in the front end itself......
    for example: suppose if i want my photo to keep in the front end Soon after i login into the application means, i will select my picture from the file browse item and immediately after giving upload button, i has to come above the browse field in the front end itself.........
    Inorder for getting the image in the front, whether i need to create a separate region where the image has to come soon after given the upload button....
    help me friends, how to achieve it from the scratch........
    Thanks
    Vel Rs

    Hi peter,
    Thanks for the detailed explanation, i have got an link for doing it and this is that
    http://www.dba-oracle.com/t_easy_html_db_file_browse_item.htm
    While referring that link i couldnt able to understand one thing peter, that is
    While creating the Upload button, in the 7th point in the link it is mentioned like
    On the Branching page enter &APP_PAGE_ID. for the Branch to Page field and click Create Button.  Remember the ending period!i couldnt understand what he is trying to say over there......Can you explain that point by going through that link clearly...Whether he is asking me to create what....
    Thanks
    Vel Rs

  • How to configure SAP ECC DMS content repository with CRM Services Object

    hi,
    we have SAP Document management system which is currently integrated with SAP R/3 Ecc system .
    with ref. to sap standard functionality i am able to upload the document in DMS content repository through SAP R/3 Ecc System as below.
    step-1 ,T.code:CV01n
    a.     create - DMS Documents
    b.     Oupload Scanned documents in DMS system
    c.     select content repository
    d.     Save Document
    now, in same manner i want to store business documents in SAP ECC R/3 DMS content repository using CRM services trnsaction"CRMD_ORDER". kindly guide me suitably.
    regards,
    sunil

    i am explaining your proble
    a.    create - DMS Documents
    b.     Oupload Scanned documents in DMS system
    c.     select content repository
    d.     Save Document
    after saving open to document in cv02n and track status of doc i.e. AR CR & RE
    if RE status is there the it will repositor at server
    Regards,
    Sanjeev

  • How to upload an image from my computer using in-browser editing

    When I use in-browser editing to change an image on my Muse site, there is not an option to upload the image "from my computer" like it shows in the documentation.  How can my clients update an image on their Muse sites from their own computers?

    Hello Cheny,
    Please check if the suggestions made here helps resolve the issue: http://forums.adobe.com/message/5687159
    Cheers
    Parikshit

  • How to upload files/images to the database from a form.

    I'm making a custom user profile form.
    The users can update their profile in this form.
    I cannot use the standard profile form, because the customer got very specific
    demands about the context of the profile form.
    In this custom profile form the user must be able to upload an image
    from their hard disk(just like in the standard profile form).
    I've got the following questions about uploading pictures:
    - How do I make a button to show the explorer window.
    - how do I get the chooses file-name in a field.
    - how do I get the new file in the database.
    - how do I get rid of an old file in the database.
    - how do I get the image on the form.
    Or is there a special portal way to upload images/files in a form.
    Does anyone have a clue?
    regards
    arny

    Hi,
    Regular Portal forms will support upload of images/documents to the database. Just identify your column as a blob, and the 'Browse' button will automatically show up in the form and the users will get to choose the file they want to upload from their desktop.
    The thing is, I haven't been able to figure out how to get that document/image back out of the database (e.g. in a report), once it's put in. Maybe someone else can answer that.

Maybe you are looking for

  • Print crashes Pages

    Hey all. I am having an odd problem. When I try to print a document on my MacBook Pro (Core Duo), my Pages app crashes. I don't even get the screen asking for the settings, it just fails right then and there. I have tried exporting as a PDF (which is

  • Java Application + Flash / Win Media Player.

    Hey Guys, I am developing a video streaming application and wanted to integrate the Flash player in my code. I am not able to do it. I could load and open the player but couldnt play .swf file. Please advice / suggest / guide... Bye, Salil.Siddhaye

  • Unable to add reminder on iPhone 4 with iOS 5

    I just upgraded my iPhone 4 to iOS 5 and when i open reminders there is no way to add anything, and there is no plus sign

  • What's my Password?

    Why does iTunes keep asking me to enter my Apple ID password?  I'll enter it and anywhere from a few hours to a few days, iTunes will ask me to enter it again. Confused. Doesn't iTunes remember my Apple ID? -Mike

  • VL04/VL10

    Hi all I want Layout in VL04/VL10 like this Delivery date, Sales doc no, Ship-to, Location, Route, Grs Wgt, Volume Iam selcting the field from layout but ship to name, location and delivery date is not comming how would we solve this please help me T