Uploading a file to Server

Hi All.
I need to upload a file to CMS, just like I can do with the CMC:
from cmc -> folder -> manage -> add -> local file (or something like that).
But I need to do it from SDK.
I did not found out exactly, but I am sure it is possible.
Anyone know how ?
Thanks a lot,
Ehud.

Hi,
The sample below shows how to add a crystal report to Enterprise.
http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/BOE_SDK/boesdk_java_dg_doc/doc/boesdk_java_dg/HowToExamples7.html#169070
You can change the plugin type depending upon the type of object you want to publish. You need to find out the SI_ID of the folder in which you want to savve the report and set parentID property for the object to it.
This link is from XI R2 Developer SDK reference guide.
Thanks
Aasavari

Similar Messages

  • Upload failed your changes were saved but could not be uploaded because of an error. you may be able to upload this file using server web page. save a copy

    Hi All,
    upload failed your changes were saved but could not be uploaded because of an error. you may be able to upload this file using server web page. save a copy button.
    This is the issue which I am facing while working with SharePoint 2010. In a sharePoint 2010 document library I am having an excel file and I am trying to open it from Windows 7 and is office 2010.
    I cam e across few suggestion as mentined below but unable to find the location where to do
    Go to Resource Policies > Web >
    Rewriting > Custom Headers > (if 'Custom Headers' is not visible, click
    Customize on the right top to enable the view).
    Create a new policy with the Resource as <fully qualified domain name of the SharePoint server:*/*> (for example https://sharepoint.juniper.net:*/* ).
    Create the action as Allow Custom Headers.
    Apply the settings to the required roles.
    Please suggest.

    Hi rkarteek
    All things you have to do is as follows:
    1. Open regedit.exe
    2. Naviagate to following key:
    [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\14.0\Common\Internet]
    3. Click Edit Menu -> New -> DWORD with name of "FSSHTTPOff"
    (without quotes)
    4. Click on "FSSHTTPOff" and enter value of 1
    5.
    Close any Office Applications and browser sessions
    6. Try to reopen your document (no more read only or failure to upload)
    have a nice day!

  • Uploading a file to server using servlet (Without using Jakarta Commons)

    Hi,
    I was trying to upload a file to server using servlet, but i need to do that without the help of anyother API packages like Jakarta Commons Upload. If any class for retrieval is necessary, how can i write my own code to upload from client machine?.
    From
    Velu

    <p>Why put such a restriction on the solution? Whats wrong about using that library?
    The uploading bit is easy - you put a <input type="file"> component on the form, and set it to be method="post" and enctype="multipart/form-data"
    Reading the input stream at the other end - thats harder - which is why they wrote a library for it. </p>
    why i gave the restriction is that, i have a question that <code>'can't we implement the same upload'</code>
    I was with the view that the same can be implemented by our own code right?

  • How to upload a file into server using j2ee jsp and servlet with bean?

    How to upload a file into server using j2ee jsp and servlet with bean? Please give me the reference or url about how to do that. If related to struts is more suitable.
    Anyone help me please!

    u don't need j2ee and struts to do file uploading. An example is as such
    in JSP. u use the <input> file tag like
    <input type="file"....>You need a bean to capture the file contents like
    class FileUploadObj {
        private FormFile srcFile;
        private byte[] fileContent;
        // all the getter and setter methods
    }Then in the servlet, you process the file for uploading
        * The following loads the uploaded binary data into a byte Array.
        FileUploadObj form = new FileUploadObj();
        byte[] byteArr = null;
        if (form.signFile != null) {
            int filesize = form.srcFile.getFileSize();
            byteArr = new byte[filesize];
            ByteArrayInputStream bytein = new ByteArrayInputStream (form.srcFile.getFileData());
            bytein.read(byteArr);
            bytein.close();
            form.setFileContent(byteArr);
        // Write file content using Writer class into the destination file in the server.
        ...

  • Uploading zip file to server

    Hi,
    I want to upload a zip file in some server location,till now i have below code,but not able to get any clue how to upload zip file to server when user press Begin button.
    Can someone please help me?
    >
    JSP code:
    <af:inputFile label="Upload:"
    valueChangeListener="#{ifarm.fileUploaded}"/>
    <af:commandButton text="Begin"/>
    Bean code :
    public void fileUploaded(ValueChangeEvent valueChangeEvent) {
    UploadedFile file = (UploadedFile) valueChangeEvent.getNewValue();
    if (file != null)
    System.out.println("************** "+file.getFilename().toString());
    >>

    All you need to do is to get hold of the input stream of the upload file and copy it to an file on your server (which you can create).
        public static int copy(InputStream input, OutputStream output)
                throws IOException {
            byte[] buffer = new byte[1024 * 4];
            int count = 0;
            int n = 0;
            while (-1 != (n = input.read(buffer))) {
                output.write(buffer, 0, n);
                count += n;
            return count;
        public void fileUploaded(ValueChangeEvent valueChangeEvent) {
            UploadedFile file = (UploadedFile)valueChangeEvent.getNewValue();
            if (file != null) {
                File ff;
                try {
                    // create a temporary file on the host server
                    ff = File.createTempFile("xx", "yy");
                    FileOutputStream os = new FileOutputStream(ff);
                    IOUtils.copy(file.getInputStream(), os);
                } catch (IOException e) {
                    e.printStackTrace();
                System.out.println("************** " +
                                   file.getFilename().toString());
        }Timo

  • How to Upload a File to Server(JSP - Tomcat)?

    Hi,
    I want to upload a file to Server(Where the Tomcat is Running) to a particular directory.Let it be \tomcat\webapps\exapmles\Viki\.But note i dont have rights to map the drive from CLient side.I want to upload the file from client side to the unknwn server to a particular directory
    Please Help me
    Thanks in advance

    http://jakarta.apache.org/commons/fileupload/

  • Error in uploading a file in server

    Hi,
    We are working in a application whose technologies are Flex 4.0 and .Net 2010.
    We are using .Net WCF Service for interacting with backend from the Flex front end.
    In our application, we have requirement to upload a file from the client into a server.
    We faced the following issue,
    Security violation Issue #2032.
    Solution: We have found that there is a sandbox restriction to access other domains, then we have placed the crossdomain.xml, which resolves the issue.
    But this solution works only in the IE.
    We are still getting the same error (Error #2032: Stream Error.) in other browsers - FireFox, Chrome and Safari.
    Please let us know if there are any suggestions or solutions for this issue.
    Regards,
    Guru

    Siva,
    You must apply modifiable binary type in wdDoInit of controller:
    ISimpleType stype =
      wdContext
        .node<YourNode>()
          .getNodeInfo()
            .getAttribute("FileResource")
              .getModifiableSimpleType();
    IWDModifiableBinaryType mtype = (IWDModifiableBinaryType)stype;
    /* Optional steps: affects only FileDownload control */
    /* mtype.setMimeType( WDWebResourceType.JPG_IMAGE);  */
    /* mtype.setFileName( "picture.jpg" );               */
    Sure, to make above work you must use binary type in context designer.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • How do I create a slide where users can upload a file to server or email a file?

    Could anyone guide me in how I could go about creating a slide where users can either email a file or upload it to my server?
    Any help would be greatly appriciated...
    Steve

    Hello,
    Welcome to Adobe Forums.
    I am not sure how you can Upload a file, you might need a Javascript.
    You can create a slide and a button of that slide can call the default Email client (MS Outlook, Outlook Express....)
    1) On  you Slide insert a button (Insert -> Standard Object -> Button
    2) Double Click on that button and select "Open URL or file" for On Success (Under Properties Inspector)
    3) Write "mailto:[email protected]" in the URL box (For Example : [email protected])
    4) Publish the result, when you click on the button, it will call the default mail client.
    Screenshot :
    Note : This might not work if you have a Network Security which do not allow calling Mail Client through a Script (Clicking of Button calls the script)
    Thanks,
    Vikram

  • Uploading a file to server taking way too long

    When I upload a modified file to the server by selecting it in Local Files selecting Synchronize Dreamweaver reports as it goes through all kinds of directories on my server that do not contain this file. Why can't Dreamweaver just write the file to the directory it should know it's in?
    I'm running Dreamweaver CS4.
    Thanks.
    Steve

    I'm surprised nobody has answered this.  Just hit "Put" instead of synchronize.  Synchonize looks at every single file in your site and makes the server match what's on your computer.  So, synchronize forces DW to check every single file in your site folder.  If you just "put" the file, it only uploads the file/files you have selected.  Synchronize is a good feature to have, but you shouldn't use it every time you need to upload one file.

  • Uploading a file to server using ajax and struts

    My problem is i wrote a program to upload a file to the server using Ajax.
    Here iam used Struts and Ajax.
    The problem is when iam uploaded a file from my PC the file is uploading to the server in the upload folder located in the server my system.
    Iam using Tomcat server 5.0
    But when iam trying to access it through other system it is not doing so
    Giving an internal server error i,e 500.
    Iam putting the necessary documents for ur reference.
    Plz help me soon .
    My exact requirement is i have to upload a file to the upload folder located in the server.
    And i have to get the path of that file and display the file path exactly below the browse button from where iam uploaded a file.
    That should be done without page refresh and submit thats y iam used Ajax
    Any help would greatly appreciated
    Thanks and Regards
    Meerasaaheb.
    The action class is FilePathAction
    package actions;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import java.io.*;
    public class FilePathAction extends Action{
    public ActionForward execute(ActionMapping mapping, ActionForm form,
    HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException
    String contextPath1 = "";
    String uploadDirName="";
    String filepath="";
    System.out.println(contextPath1 );
    String inputfile = request.getParameter("filepath");
    uploadDirName = getServlet().getServletContext().getRealPath("/upload");
    File f=new File(inputfile);
    FileInputStream fis=null;
    FileOutputStream fo=null;
    File f1=new File(uploadDirName+"/"+f.getName());
    fis=new FileInputStream(f);
    fo=new FileOutputStream(f1);
    try
    byte buf[] = new byte[1024*8]; /* declare a 8kB buffer */
    int len = -1;
    while((len = fis.read(buf)) != -1)
    fo.write(buf, 0, len);
    catch(Exception e)
    e.printStackTrace();
    filepath=f1.getAbsolutePath();
    request.setAttribute("filepath", filepath);
    return mapping.findForward("filepath");
    the input jsp is
    filename.jsp
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    <script type="text/javascript">
    alertflag = false;
    var xmlHttp;
    function startRequest()
    if(alertflag)
    alert("meera");
    xmlHttp=createXmlHttpRequest();
    var inputfile=document.getElementById("filepath").value;
    xmlHttp.open("POST","FilePathAction.do",true);
    xmlHttp.onreadystatechange=handleStateChange;
    xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    xmlHttp.send("filepath="+inputfile);
    function createXmlHttpRequest()
    //For IE
    if(window.ActiveXObject)
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    //otherthan IE
    else if(window.XMLHttpRequest)
    xmlHttp=new XMLHttpRequest();
    return xmlHttp;
    //Next is the function that sets up the communication with the server.
    //This function also registers the callback handler, which is handleStateChange. Next is the code for the handler.
    function handleStateChange()
    var message=" ";
    if(xmlHttp.readyState==4)
    if(alertflag)
    alert(xmlHttp.status);
    if(xmlHttp.status==200)
    if(alertflag)
    alert("here");
    document.getElementById("div1").style.visibility = "visible";
    var results=xmlHttp.responseText;
    document.getElementById('div1').innerHTML = results;
    else
    alert("Error loading page"+xmlHttp.status+":"+xmlHttp.statusText);
    </script></head><body><form name="thumbs" enctype="multipart/form-data" method="post" action="">
    <input type="file" name="filepath" id="filepath" onchange="startRequest();"/>
    </form>
    <div id="div1" style="visibility:hidden;">
    </div></body></html>
    The ajax response is catching in a dummy.jsp
    <%=(String)request.getAttribute("filepath")%>
    corresponding action mapping
    <action path="/FilePathAction" type="actions.FilePathAction">
    <forward name="filepath" path="/dummy.jsp"/>
    </action>
    So plz help me to upload a file to the server from any PC.
    Iam searched alot but didnt get any solution.

    Plz help me soon if it possible so
    Iam in great need.
    I have worked alot but not worked out.
    Any help greatly appreciated

  • Upload XML file from server to itab

    After failed to get a answer about download data from xml file in server to my itab, and searching and searching in hundred of post and threads i try my own solution for this issue.
    I read the file with:
    OPEN DATASET FICHERO FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    In this case the result is a table filled with register type string like this:
    #<label>22222</label>
    I need a table with this kind of value (example):
    label   | 22222
    label2 | John
    label3 | Smith
    Therefore i have to parse the data of my table, i try with the FM:
    TEXT_CONVERT_XML_TO_SAP
    But dont works for me,
    I am too new in ABAP.
    The code for my report is very simple:
    REPORT ZPRUEBA_XML.
    DATA: BEGIN OF TABLA OCCURS 1,
    TEXTO(256) TYPE C,
    END OF TABLA.
    DATA: FICHERO LIKE RLGRAP-FILENAME.
    OPEN DATASET FICHERO FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF SY-SUBRC NE 0.
      WRITE:/ 'ERROR'.
    ENDIF.
    FREE TABLA.
    DO.
      READ DATASET FICHERO INTO TABLA.
      IF SY-SUBRC NE 0.
        EXIT.
      ELSE.
        APPEND TABLA.
        WRITE: TABLA-TEXTO.
      ENDIF.
    ENDDO.
    CLOSE DATASET FICHERO.
    And my ".xml" in the server is very simple too.
    <label>222222</label>
    <name>John</name>
    <street>Smith, 23, NY</street>
    Anyone can help me?
    Thanks

    Hi,
    You could use a transformation to do that, or call FM 'TEXT_CONVERT_XML_TO_SAP'... you also have the class IF_IXML that should help you and a lot of threads on the subject, such as:
    convert XML data into ABAP internal table
    ABAP Class to convert XML to itab
    Upload XML to internal table and vice versa in SAP 4.6C
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e66701fc-0d01-0010-9c9a-f8a36c4e87ba
    Kr,
    Manu.

  • Problem uploading Dreamweaver file to Server

    Using CS3
    I cannot get my job to upload to the server correctly. The error code says: "Dreamweaver is currently interacting with a server.
    Since putting a file on save requires interaction with a server as well, DW cannot currently perform this task.
    Please try again when current server task is complete."
    And then it DOES save it to the remote site - but my links are not active and I am not able to access the job on internet.
    When I compare the remote site info it is synchronized with the local.
    My site setup has been tested and is good.
    I've been doing this job for 5 years. Not had this problem before.
    I have no other files/programs open and nothing is being saved that I know of. Sauve' 

    JTANNA wrote:
    VSauve\' wrote:
    Thanks for your reply.
    No I have not used any third-party upload files.
    I have contacted my host, but they haven't gotten back to me - Dreamhost - and I'm
    waiting and waiting . . . as my deadline gets later and later.
    In the meantime you could start using FileZilla - a free tool to upload your files.  Don't rely on Dreamhost because they could destroy your livelihood.  They couldn't care less about customers.  This is my experience with them.
    JTANNA wrote:
    1. Jan 9, 2012 7:19 PM (in response to MichaelCo)
    Re: Nav Bar collapsing in Dreamweaver
    MichaelCo wrote:
    Not sure what I am doing wrong.Any help would be appreciated.
    It is unlikely we would know either but have you uploaded/linked the relevant scripts and CSS files?  I believe PVII products rely heavily on scripts so this might be the problem
    I suggest repost your query to their forums as they should know what the problem could be.  We don't use any third party products here.
    Good luck.
    Oh the irony...
    VSauve\' wrote:
    Using CS3
    I cannot get my job to upload to the server correctly. The error code says: "Dreamweaver is currently interacting with a server.
    Since putting a file on save requires interaction with a server as well, DW cannot currently perform this task.
    Please try again when current server task is complete."
    And then it DOES save it to the remote site - but my links are not active and I am not able to access the job on internet.
    When I compare the remote site info it is synchronized with the local.
    My site setup has been tested and is good.
    I've been doing this job for 5 years. Not had this problem before.
    I have no other files/programs open and nothing is being saved that I know of. Sauve'
    From what you're describing that's happening you're syncing the whole site each time you are saving changes and there's a problem with the permission settings. I'm not saying that's the case but just from the description that's what it sounds like.

  • Uploading the file to server from the browser using JSP

    I have facing difficulty while uploading the file from the browser using user interface to the server or to the database. As previousy i was working in coldfusion, i find it very easy there with cffile command, but i am confused how to do that in JSP
    please reply soon, as i am stuck in my project because of that
    Sarosh

    Check out http://www.jspsmart.com , They have a nice free upload api that can be used w/ JSPs or Servlets. I hear O'Reilly has a nice one too. May as well use someone elses if they've done it already.

  • Uploading php files to server

    Hi. I would have thought my hosting provider could have
    helped me with this, but they could not. I have three different
    sites that i manage that are hosted at Interland. On one of these
    sites, when i upload a php file, and then try to bring this page up
    in a browser, it returns....
    Internal Server Error
    The server encountered an internal error or misconfiguration
    and was unable to complete your request.
    Please contact the server administrator,
    [email protected] and inform them of the time the error
    occurred, and anything you might have done that may have caused the
    error.
    More information about this error may be available in the
    server error log.
    Apache/1.3.26 Server at www.nd-solutions.com Port 80
    I have no problem on the other two sites hosted with them. I
    tried explaining the problem and asked what may be the difference
    with this site and why i cannot successfully upload these files.
    They seem to think it's on my end, but i have no idea what i can do
    to remedy this problem. I don't see any difference in the way i
    have this site set-up, as compared to the way i have the two others
    set-up. Any suggestions or ideas on why this could be happening to
    me?
    This all started when i tried setting up some forms using
    formmail.php on this site and i was not able to get it work, and it
    works perfectly on one of the other sites that i host with them. I
    dread calling them again -- there are such communication issues,
    coupled with bad phone connections. Any thoughts on what i might
    do, besides switching hosts -- not an option right now?

    Thanks a lot.  Here's what I did thus far:
    1) Added this upload form to an html snippet
    <form enctype="multipart/form-data" action="uploader.php" method="POST">
    <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
    Choose a file to upload: <input name="uploadedfile" type="file" /><br />
    <input type="submit" value="Upload File" />
    </form>
    Do I need to create a "MAX_FILE SIZE" .php here? What's this called or how do I go about this? php.ini?
    2) Now I inserted this <iframe> below in the same snippet
    <iframe src="uploader.php" width="x" height="x"></iframe>2)
    3) I also created a folder called 'uploads' for this code below to save to it
    $target_path = "uploads/";
    $target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
    What should this file be named?
    Should this code be added to that same file too?
    $target_path = "uploads/";
    $target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
    if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
        echo "The file ".  basename( $_FILES['uploadedfile']['name']).
        " has been uploaded!";
    } else{
        echo "There was an error uploading the file, try again!";
    4)  Do I need an .htacces file or php.ini?
    5) Do all these files go into the site's root directory?

  • Upload image files to server

    I am writing a web page using apache tomcat and java servlets. I want to be able to upload image files to a server directory. Can somebody show me the code or an example in completing this task.

    Easiest way to do it is to use a library like [Jakarta commons FileUpload|http://commons.apache.org/fileupload/]
    [A useful reference|http://balusc.blogspot.com/2007/11/multipartfilter.html]

  • Can't upload mp3 files to server - could with version 6

    I need to upload mp3 files to a server. This was possible in FireFox version 6, but I unfortunately upgraded to version 10.0.2. Now it just says "connecting" and "sending request" without any results.

    Hi there. First off thank you for your interest and your help.
    I have done what you suggest probably 30 times as I have obsessed over this crazy problem for a couple straight weeks before I finaly gave up on CS5.5
    I'm not sure what you mean by REMOTE server. The only server settings I am aware of are the ones in Dreamweaver. Here they are:
    5.0 Settings:
    Server Name = the same values on each
    Connect Using = FTP
    FTP Address = same numeric value on 5.0 & 5.5 port 21
    User name = same on both
    Password = same on both
    Root directory = is blank (I have tried it using / with no luck as well)
    web URL = http://ftp.westbrookadvertising.com/www/htdocs/
    Passive FTP is checked & Use FTP Peformance optimization is checked.
    5.5 Settings:
    Server Name = the same values on each
    Connect Using = FTP
    FTP Address = same numeric value on 5.0 & 5.5 port 21
    User name = same on both
    Password = same on both
    Root directory = is blank (I have tried it using / with no luck as well)
    web URL = http://ftp.westbrookadvertising.com/www/htdocs/
    Passive FTP is checked & Use FTP Peformance optimization is checked.

Maybe you are looking for

  • Why did a game app use my iCloud storage when I have iCloud backup turned off?

    I have a game app that I just bought but when I looked in my settings under iCloud>Storage & Backup>Manage Storage then under Documents & Data I noticed that game had used some iCloud space. I have iCloud backup off but in settings>iCloud Documents &

  • Editable ALV - how to throw an error message for a specific line & field

    Hi all, I've implemented an editable ALV and also the ON_DATA_CHECK event to check the values, entered in the ALV. So this works fine and I can check the values. But now, I want to throw an error message corresponding to the field in the ALV, where t

  • USB Microphone help

    I have a Blue Snowball Mic that I can't get to work with Logic Express (and I want to think it worked before). It works wonderfully in Garageband. I plug it in and then go to Audio Preferences, and the mic doesn't show up. The only devices that show

  • Scene thumbnails incorrect

    I am using Premiere Elements 9.  I use the auto-analyzer to analyze my footage.  It detects all of the scenes, and in the Media panel I am able to expand the source to see each individual scene which I can then add to the timeline if I wish.  This is

  • Import Module Woes

    I'm having some problems trying to import one module into another. Here's the beginning of a module: module namespace bar='http://ceridwen.us/2006/bar'; import module namespace foo='http://ceridwen.us/2006/foo' at 'file://relative_path/to_foo'; Modul