Uploading File to a particular location

Hi,
I need to upload a file to a particular location using the Struts framework.
I have been reading about the html:file tag.
But I did not come across any information as to where the file gets uploaded to. I need the file to be uploaded to a location in my project.
How do I do it?
Could anyone post a code sample for this?
Thanks in advance.

http://www.google.com/search?q=struts+file+upload
I see lots of useful examples tho.
Saving the retrieved file to a particular location has nothing to do with Struts. Just handle it in your Javabean. Check the java.io API.

Similar Messages

  • Upload file to a particular folder in UCM

    I want to upload file to a particular folder location in UCM.
    When I am uploading it is going to the default location though i programmatically have set the folder path
    I am using Adf application in Jdev 11.1.1.3
    As i am new to UCM i do not have idea of whether to define the location at ucm level or in our program
    Below is my code like this
    public void checkInContent(TransferFile file){
    UploadContentVORowImpl row=(UploadContentVORowImpl)this.getUploadContentVO1().getCurrentRow();
    IdcClient client= UCMRepositoryOperations.getIdcClient();
    DataBinder binder= client.createBinder();
    binder.putLocal ("IdcService", "CHECKIN_UNIVERSAL");
    binder.addFile("primaryFile", file);
    String fileType=file.getContentType().substring(0,file.getContentType().indexOf("/"));
    int contentId= new SequenceImpl("UCM_CONTENT_ID_SEQUENCE",getDBTransaction()).getSequenceNumber().intValue();
    binder.putLocal("dDocID", contentId+"");
    binder.putLocal("dDocName", file.getFileName());
    binder.putLocal("dDocTitle", file.getFileName());
    binder.putLocal("dDocType","DigitalMedia");
    SimpleDateFormat sdf=new SimpleDateFormat("dd-MM-yyyy HH:mm:ss");
    binder.putLocal("dInDate",sdf.format(row.getFromDate().dateValue()));
    binder.putLocal("dOutDate",sdf.format(row.getToDate().dateValue()));
    binder.putLocal("xScope",row.getScope());
    if(row.getStateId()!=null){
    binder.putLocal("xState", row.getStateId().toString());
    if(row.getDistrictId()!=null){
    binder.putLocal("xDistrict",row.getDistrictId().toString());
    binder.putLocal("dLocation", "/Contribution Folders/sahaj/content/loginPageNews");
    binder.putLocal("dAuthor", "Test");
    binder.putLocal("dSecurityGroup", "public");
    binder.putLocal("blDateFormat", "dd-MM-yyyy HH:mm:ss");
    ServiceResponse resp=null;
    String response=null;
    try {
    resp = client.sendRequest(UCMRepositoryOperations.getContext(), binder);
    } catch (IdcClientException e) {
    ucmAMLogger.severe(e);
    try {
    response=resp.getResponseAsString();
    resp.close();
    } catch (IOException e) {
    ucmAMLogger.severe(response);
    ucmAMLogger.info(response);
    }

    The xContributionFolder should be an ID, not a file path.
    To determine the correct ID, this PL/SQL function may be useful :
    function f_get_folder_id ( p_folder_path in VARCHAR2)
    return NUMBER
    is
    v_parent_folder_id NUMBER := 429910249369000002 ; -- ID of 'Contribution Folders/Root' collection
    v_folder_name VARCHAR2(255);
    v_folder_path VARCHAR2(32000);
    pos_next_separator NUMBER;
    CURSOR c_get_folder_id ( p_parent_folder_id in number, p_folder_name in varchar2 )
    is
    SELECT dcollectionid
    FROM collections
    WHERE dcollectionname = p_folder_name
    AND dparentcollectionid = p_parent_folder_id;
    begin
    v_folder_path := p_folder_path ;
    -- strip first '/'
    if ( substr(v_folder_path,1,1) = C_FOLDER_SEPARATOR ) then v_folder_path := substr(v_folder_path,2); end if;
    pos_next_separator := instr(v_folder_path,C_FOLDER_SEPARATOR) ;
    while ( pos_next_separator > 0 )
    loop
    v_folder_name := substr(v_folder_path,1, pos_next_separator - 1);
    v_folder_path := substr(v_folder_path,pos_next_separator+ 1);
    open c_get_folder_id ( p_parent_folder_id => v_parent_folder_id , p_folder_name => v_folder_name );
    fetch c_get_folder_id into v_parent_folder_id;
    close c_get_folder_id ;
    pos_next_separator := instr(v_folder_path,C_FOLDER_SEPARATOR) ;
    end loop;
    v_folder_name := v_folder_path;
    open c_get_folder_id ( p_parent_folder_id => v_parent_folder_id , p_folder_name => v_folder_name );
    fetch c_get_folder_id into v_parent_folder_id;
    close c_get_folder_id ;
    dbms_output.put_line('Found :' ||v_folder_name||' id '||v_parent_folder_id);
    return v_parent_folder_id;
    end f_get_folder_id;

  • Saving the file to a particular location!!!

    Hi,
          I have to upload a file and the file uploaded should be saved to aparticular location. For Example if i upload a file named 'eg.jpeg.' , how can i save this file to a particular location in the system?
    Regards,
    Shiny

    Hi,
    If you just want to display it within the same BSP application, try this:
    <htmlb:image src="eg.jpg" />
    If you want to retrieve the image from a non BSP application, I think you should look at logical files and paths (transaction AL11).
    Regards,
    Tanguy

  • To upload file and save it in a location

    Hi,
    I need to upload an image file in database. and also save a copy of this uploaded image file in a particular location. If updating the image file, then i need to remove the previous image file and save the new one against a particular record.
    I did to upload. i want to save a new file and remove the previous file. how to do this?
    Thanks in advance

    Hi,
    Hope this help
    https://cn.forums.oracle.com/forums/thread.jspa?threadID=983109
    ADF Faces Intermedia image upload and Display
    http://baigsorcl.blogspot.com/2010/08/uplaoding-and-downloading-images-in.html
    http://baigsorcl.blogspot.com/2010/09/store-images-in-blob-in-oracle-adf.html
    ~Abhijit

  • How to save PDF file in a particular shared location

    Hi All,
    I am trying to save generated PDF file in a particular location like C:/Documents and Settings/FolderName/My Documents/test.png.
    But Its givinhg following error.
    [ERROR] [Image_Saver_0]ImageSaver: Access to the file path /C:/Documents and Settings/FolderName/My Documents/test.png is not allowed .
    I am Using Image Saver action block.
    To this passing PDF_Document output as Input to "Encoded image" of Image saver action block.
    passing  path as above in "Path" of Image saver action block.
    MII version :14.0 SP4.
    Can anybody suggest me how to give path to store PDF files in a particular location.
    Thanks&Regards,
    Rajee .

    Hello  Hari,
    Thanks for your reply.
    I am  trying to save currently on my local machine.
    I also tried as suggested by Raman ,but its not working.
    If I am trying to save in server machine, I am getting different error like
    [ERROR] [Image_Saver_0]ImageSaver: \\01hw601622\temporaryshare\Temp\test.png (Logon failure: unknown user name or bad password) Exception: [\\01hw601622\temporaryshare\Temp\test.png (Logon failure: unknown user name or bad password)] ".
    Folder name "Temp" is already created in this machine.
    Path I am giving like "\\01hw601622\temporaryshare\Temp\test.png" in my Image saver action block.
    My transaction is like this.
    Kindly suggest me if I am wrong.
    Regards,
    Rajee Vuta.

  • Inserting strings in a RandomAccessFile at a particular location

    I wrote a java program to read and display the contents of RAF. It is working. Actually,I need to read a file and search for a string in it and if the string equals certain value, then i need to insert a line in the file at that location.
    My problem is I am not able to insert any string in the RandomAccessFile(RAF) at a particular location, it always overwrites the already present string.
    I have a file called SOE_Arrays2.js which needs to be read and its content has to be modified. I am searching for a string like "os = [" in it and inserting another line like "["64w","64-bit Windows"]," at that location.
    the file looks like this:
    os1 = [
    ["win","Windows"],
    ["unx","UNIX"],
    ["mvs","MVS"]
    os2 = [
    ["alp","Alpha VMS"],
    ["lnx","Linux"]
    var letter = [
    ["new","New"],
    ["addon","Add-on"],
    ["lsf","LSF"],
    ["renew","Renewal"]
    The java program i wrote is here:
    import java.io.*;
    public class RAFtest
         public void writeTo()
              try
         String f = "C:\\webapps\\oncall\\soe\\SOE_Arrays2.js";
         File arrayfile = new File(f);
         RandomAccessFile raf = new RandomAccessFile(arrayfile, "rw");
         String s="",ss="";
         int i,j = 0,len;
         long fp;
    while((s = raf.readLine()) != null)
              //System.out.println(s);
              int ptr = 0;
              ptr = s.indexOf("os2 = [");
              if(ptr != -1)
                   System.out.println(s);
                   System.out.println("The OS array is here:");
                   ss = s;
                   raf.writeBytes("\r\t");
                   fp = raf.getFilePointer();
                   raf.seek(fp-4);
              raf.writeBytes("[\"64w\",\"64-bit Windows\"],\r");
                   break;
         raf.close();     
         catch(Exception e){e.printStackTrace(System.out);}      
         public static void main(String args[])
              RAFtest e = new RAFtest();
              e.writeTo();
    After executing the code SOE_Arrays2.js looks like this:
    os1 = [
    ["win","Windows"],
    ["unx","UNIX"],
    ["mvs","MVS"]
    os2 = [["64w","64-bit Windows"],
    lnx","Linux"]
    var letter = [
    ["new","New"],
    ["addon","Add-on"],
    ["lsf","LSF"],
    ["renew","Renewal"]
    you can see that RAF overwrites to the file at that particular location( after the line "os2 = [ ". What i need is to insert the text at a particular location, Is there a way to do this?
    I tried to insert carriage return, etc and move the file ptr back a little and write, whatever it is, RAF overwrites it, is there a way to insert instead of overwrite?
    Basically I want to get some string from the user from a web page and insert that string in my SOE_Arrays2.js file at a particular location depending on certain conditions.
    Is there another way of doing this instead of RAF?
    Please let me know how to do this.
    Thanks,
    Priyha.

    Hi DrClap,
    Thanks for the clarification. Everything works except the renameTo() . I am trying to rename the arrayfile2 to arrayfile1 , but the rename always return false. I am not sure why rename is not successful.
    I checked for the permissions of the file, full permission is there. I closed the files before renaming.
    Here's the code.
    import java.io.*;
    public class RAFtest
    public void writeTo()
    try
    String f1 = "C:\\JAVA\\SOE_Arrays2.js";
    String f2 = "C:\\JAVA\\SOE_Arrays3.js";
    File arrayfile1 = new File(f1);
    File arrayfile2 = new File(f2);
    RandomAccessFile raf1 = new RandomAccessFile(arrayfile1, "rw");
    RandomAccessFile raf2 = new RandomAccessFile(arrayfile2, "rw");
    long fp1=0,fp2=0; // file pointers
    String s="",ss="";
    int i,j = 0,len;
    boolean b= false;
    raf2.seek(0);
    while((s = raf1.readLine()) != null)
    int ptr = 0;
    raf2.writeBytes(s);
    ptr = s.indexOf("var OS9.1_sol = [");
         if(ptr != -1)
              System.out.println(s);
              System.out.println("The OS array is here:");
              ss = s;
              fp1 = raf1.getFilePointer();
              raf2.writeBytes("[\"64w\",\"64-bit Windows\"],");
              fp2 = raf2.getFilePointer();
              break;
    raf1.seek(fp1);
    while((s = raf1.readLine()) != null)
         raf2.writeBytes(s);               
    raf1.close();
    raf2.close();
    if(arrayfile2.exists()) System.out.println("file2 exists!");
    try{
    b = arrayfile2.renameTo(arrayfile1); //rename the file, why does it return false?
    }catch(SecurityException se){se.printStackTrace(System.out);}
    catch(NullPointerException ne){ne.printStackTrace(System.out);}
    System.out.println("b: "+b);
    catch(Exception e){e.printStackTrace(System.out);}
    public static void main(String args[])
    RAFtest e = new RAFtest();
    e.writeTo();
    here is the SOE_Arrays2.js
    var OS9.1 = [
    ["win","Windows"],
    ["unx","UNIX"],
    ["mvs","MVS"]
    var OS9.1_sol = [
    ["alp","Alpha VMS"],
    ["lnx","Linux"]
    var letter = [
    ["new","New"],
    ["addon","Add-on"],
    ["lsf","LSF"],
    ["renew","Renewal"]
    Please let me know whats wrong with the above code. I have no clue why renameTo returns false.
    Thanks,
    Priyha

  • How to associate an uploaded file with form data

    I have a "ticketing" app which stores a ticket no. as well as allows users to upload multiple files per ticket. The problem I am having is how to associate an uploaded file with a particular ticket no. As you can guess this becomes complicated when the same user can potentially update multiple tickets using the same file names. I am having difficulty trying to understand how to associate a ticket no with one or more uploaded files. I do have a custom table which I update with the attachments but I am unsure how to, or when to, update the ticket information on this custom table. I only want to retrieve attachments for a given ticket, not all attachments uploaded by a user.Does anyone have any ideas?

    Hi,
    My question is bit related to this topic.
    I am having a requirement to upload the CSV files so that they will store in a database table and later on wards when they search on that table it needs to pull the information and display on the form. I am a new bee to application express. Could some body tell me how to start this process with??. Just give me an overvoew/hints so that I will try to carry on my own.
    Cheers,
    Krishna.

  • Store File into weblogic server location

    Hi,
    I want to store Upload file into weblogic servers location Using programatically.
    Can any one please help ? Its very urgent.
    Thanks &Regards
    Bhaskar
    Edited by: 920422 on Mar 20, 2012 3:18 AM

    Hi EJP, This should also be removed from the Java Card forum as it doesn't relate to smartcards at all.
    Shane

  • Uploading a file, renaming it and placing it in a particular location on server

    A user submits a file from a front end HTML form which has fields like Division, Department name, department number,
    section number, year, email, phone etc. The file being submitted might have a user given name. But, when it is 
    uploaded I want it to be named as Departmentname_departmentnumber_sectionnumber. So, if department is Accounting, 
    dept number is 123 and section is 1, name of file will be Accounting_123_1.doc The extension will be whatever type 
    of file(text, MS-Word's .doc or .docx, PDF or RTF) was submitted and the user can upload attachments of files with 
    extension .txt, .doc, .docx, pdf, rtf only.
    Also, I want it to be stored on a particular location on server. So, if Division is Corporate Finance and year is 
    2011-2012 it should be stored on server at "E:\Files Submitted\2011-2012\Corporate Finance\". The "E:\Files
    Submitted\" part remains same in the directory name.
    <cfset submittedfileName =
    #form.departmentname#&"_"&#form.departmentnumber#&"_"&#form.section_number_1#&"."&#cffile. ClientFileExt#>
    <cfset filedirectoryYear = "E:\Files Submitted\"&#form.current_year#&"\"&#form.division#&"\">
    <!--- ensure that the user uploads attachments of type with extension .txt, .doc, .docx, pdf, rtf only--->
    <cfif FORM.attachment_1 neq "">
           <cffile action="upload"
                   accept="text/plain,application/msword,application/pdf,application/rtf"          
                     filefield="attachment_1"
                     destination="E:\temp\uploads"
                     nameconflict="Makeunique"
            >
    <!--- rename the file and move it to permanent destination --->        
            <cffile
      action="rename"
      source="E:\temp\uploads\#cffile.serverFileName#"
      destination=#filedirectoryYear#&#submittedfileName#&#cffile.ClientFileExt#
      >
    <!---   now create a temporary variable for the attachment so that it can be emailed later on --->
    <cfset attachment_local_file_1 = #filedirectoryYear#&#submittedfileName#&#cffile.ClientFileExt#>
    </cfif>
    I used the cffile.ClientFileExt because the files were getting uploaded without the extension but am receiving an
    error at   destination=#filedirectoryYear#&#submittedfileName#&#cffile.ClientFileExt# as "multiple items at this
    position: Missing Token > or /> .
    I am using Coldfusion 8. Any suggestions would be appreciated on where I am erring and how I can fix it.

    Thanks Dan,
    The space between 'l' and 'e' was a formatting error while I was pasting text to this forum.
    Currently, I have
    <cfset filedirectoryYear = "E:\Files Submitted\"&#form.current_year#&"\"&#form.division#&"\">
    <cfif FORM.attachment_1 neq "">
           <cffile action="upload"
                   accept="text/plain,application/msword,application/pdf,application/rtf "          
                     filefield="attachment_1"
                     destination="E:\temp\uploads"
                     nameconflict="Makeunique"
            >
    <!--- rename the file and move it to permanent destination --->        
    <cfset submittedfileName =
    #form.departmentname#&"_"&#form.departmentnumber#&"_"&#form.section_number_1#&"."&#cffile. ClientFileExt#>
    <cfset presentfileName = #cffile.serverFileName#&"."&#cffile.ClientFileExt#>
            <cffile
      action="rename"
      source="E:\temp\uploads\#presentfileName#"
      destination=#filedirectoryYear##submittedfileName#
      >
    <!---   now create a temporary variable for the attachment so that it can be emailed later on --->
    <cfset attachment_local_file_1 = #filedirectoryYear#&#submittedfileName#&#cffile.ClientFileExt#>
    </cfif>
    <cfset attachment_local_file_1 = #filedirectoryYear#&#submittedfileName#>
    When I submit, I get the error message
    "Attribute validation error for tag CFFILE.
    The value of the attribute source, which is currently c:\Course Syllabi\uploads\Web Based System Two Page HandOut.pdf, is invalid and the line below is referred.
    destination="#filedirectoryYear##submittedfileName#"
    The filedirectoryYear path exists i.e. I have E:\Files Submitted\2011-2012\Finance. What could be the issue?
    P.S. I got it working, The filedirectoryYear path value was not the actual directory path\name in the filesystem. Once I had the
    correct name in the filesystem, the application worked fine.

  • How to upload multiple files into a server location at a single time

    Hi All,
    In my application i need to send multiple files from a particular page into the server location. In this page there will be an option to upload a file and after selecting the file , we will have an option asking if we were interested to send another file. It works just similar to google mail where we can multiple files at the same time. Right now though i had coded the uploading files concept i am facing some problems when trying to upload multiple files. All the files are being appended to a single file but i want them to be placed as different files at the specified location. Plz help me in this regard...
    Thanks in advance................,,

    Hi,
    i am sending the code in my prg. Have a look at it.
    var multi_selector = new MultiSelector( document.getElementById( 'files_list' ),3);
    In the above line i am specyfying that the maximum no. of files to be uploaded is 3. So if i upload less than 3 files, the program doesn't work and is not reading the uploaded files. If i upload 3 files it works fine. So please suggest me how to make this work irrespective of the no. of files uploaded using apache commons.
    My code is as follows:
    <form action="./servlet/Sample" method = "post" enctype="multipart/form-data">
         <!-- The file element -- NOTE: it has an ID -->
         <input id="my_file_element" type="file" name="file_1" >
         <input type="submit" name="submit1" value="submit">
    </form>
    Files:
    <!-- This is where the output will appear -->
    <div id="files_list"></div>
    <script>
         <!-- Create an instance of the multiSelector class, pass it the output target and the max number of files -->
         var multi_selector = new MultiSelector( document.getElementById( 'files_list' ),3);
         <!-- Pass in the file element -->
         multi_selector.addElement( document.getElementById( 'my_file_element' ) );
    </script>

  • Urgent!doubt in upload the file to a particular directory.

    Hi
    Actually i'm developing a site using JSP.
    Main concept of the project is the user should be
    able to access his files or dabases from anywhere
    in the world thru internet via intranet.
    i've placed upload option in my site.
    each user should b given a separate directory.
    can anyone tell me how to make the user to store
    the file in a particular directory(the one alloted to him).
    And to view the file, if the user enters the file name
    it should open the file in the particular format.
    i need the coding since i'm new to jsp.
    can anyone help me or refer any site tht can solve
    my problem?
    thanx in advance.

    I'd just answered a similar case. I believe this is what you are looking for;
    <%@ page contentType="MIME-Type; Charset=Character-Set" %>
    Read up on MIME-Type and Character-Set for info.
    Here some exmaple;
    By default:
    <%@ page contentType="text.html; Charset=ISO-8859-1" %>
    Show an MS Excel file;
    <%@ page contentType="application/vnd.ms-excel" %>
    or
    <%
    String mimeType = "application/vnd.ms-excel"
    response.seContentType(mimeType);
    %>
    Cheers

  • Add node at particular location in XML file

    I'd like to add an item to a particular location in an XML file.  Location of parent node is given by string variable "itemtoaddto" and the XML file is given by "myXML":
    function TraverseXMLfile(itemtoaddto,myXML): void {
        var AttributeList:XMLList = myXML.attributes() + myXML.*.attributes() + myXML.*.*.attributes();
         for each (var labelname:XML in AttributeList) {
          if(labelname == itemtoaddto){
            trace (labelname + "match found!!!!!");
            myXML.*.labelname.appendChild(<SON name="Will" bday="01/15" />);
    In the above code, the parent item is being found in fact it's printing the "match found!!!!!" message.  However, the line
           myXML.*.labelname.appendChild(<SON name="Will" bday="01/15" />);
    is giving the following error:
         TypeError: Error #1086: The appendChild method only works on lists containing one item.
    Can someone help please? thanks.

    var myXML:XML = <product>
                                <subAssembly label="Sub1">&#8232;           
                                    <part label="Part1_1"/>&#8232;           
                                    <part label="Part1_2"/>&#8232;           
                                    <part label="Part1_3"/>&#8232;           
                                    <part label="Part1_4"/>&#8232;       
                                </subAssembly>&#8232;       
                                <subAssembly label="Sub2">&#8232;           
                                    <part label="Part2_1">&#8232;               
                                        <feature label="Feature2_1_1"/>&#8232;               
                                        <feature label="Feature2_1_2"/>&#8232;           
                                    </part>&#8232;           
                                    <part label="Part2_2">&#8232;               
                                        <feature label="Feature2_2_1"/>&#8232;               
                                        <feature label="Feature2_2_2"/>&#8232;           
                                    </part>&#8232;       
                                </subAssembly>&#8232;       
                                <subAssembly label="Sub3"> &#8232;           
                                    <part label="Part3_1">&#8232;               
                                        <feature label="Feature3_1_1"/>&#8232;               
                                        <feature label="Feature3_1_2"/>&#8232;           
                                    </part>&#8232;       
                                </subAssembly>&#8232;
                            </product>;
    myXML.subAssembly.(@label == "Sub1")[0].insertChildAfter(myXML.subAssembly.(@label == "Sub1")[0].part[myXML.subAssembly.(@label == "Sub1").part.length() - 1], <part label="Part1_5"/>);
    trace(myXML);
    This traces:
    <product>       
      <subAssembly label="Sub1">          
        <part label="Part1_1"/>      
        <part label="Part1_2"/>
        <part label="Part1_3"/> 
        <part label="Part1_4"/>
        <part label="Part1_5"/>
      </subAssembly>
      <subAssembly label="Sub2">
        <part label="Part2_1">        
          <feature label="Feature2_1_1"/>      
          <feature label="Feature2_1_2"/>    
        </part>  
        <part label="Part2_2">      
          <feature label="Feature2_2_1"/>      
          <feature label="Feature2_2_2"/>   
        </part>
      </subAssembly>
      <subAssembly label="Sub3">
        <part label="Part3_1">       
          <feature label="Feature3_1_1"/>     
          <feature label="Feature3_1_2"/>
        </part>
      </subAssembly>
    </product>

  • I store my upload file at server0 location.Now i want to display it how?

    Hi,
    I store my upload file at server0 location. Now i want to display it how it is possible.
    Regards,
    Gurprit Bhatia

    Hi Gurprit,
    If you want to open or save the uploaded file on local PC then follow below steps:
    1. Take a "FileDownload" UI element
    2. Create Resource type value attribute and bind it to resource property of "FileDownload" UI element.
    3 Write the below code in wdDoInit() method:
    IWDResource resource =
    WDResourceFactory.createResource(new FileInputStream(new File("D:\\usr\\sap\\EPD\\JC00\\j2ee\\cluster\\server0", "Test.txt")),
                             "Test.txt",
                             WDWebResourceType.UNKNOWN,
                             true);
    Hope this will help you.
    Thanks
    Sandy

  • How to upload file located on the network

    I used following API successfully upload file located on
    database machine. I
    got error when upload file located on network. I run this
    as "Portal30" user
    which has DBA priviledges.
    I used code like this.
    result:=wwsbr_api.add_item(p_caid=>53,
    p_folder_id =>4487,
    p_display_name => 'Test',
    p_type_id => wwsbr_api.ITEM_TYPE_FILE,
    p_type_caid => wwsbr_api.SHARED_OBJECTS,
    p_region_id =>5,
    -- these are not working
    p_file_filename=>'//nt2/vol2/common/test.pdf'
    p_file_filename=>'///nt2/vol2/common/test.pdf'
    p_file_filename=>'S:/common/test.pdf'
    -- this works
    p_file_filename=>'c:/test.pdf'
    Errors:
    ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.NullPointer Exception
    ORA-06512: at "PORTAL30.WWSBR_API",line 24
    ORA-06512: at "PORTAL30.WWSBR_API",line 277
    PS: we tries run Oracle as a privileged user other than System
    user. it won't help. Am I missing something here. I am new on
    the network problem. How I can verify the privileged user access
    the network.
    we have portal 3.0.9.8.1 running on Windows 2000

    Thanks for the direction. I can upload same file through Oracle
    Portal "Add Item" user Interface. So I assume file is visible to
    the database. Notice the Portal uses wwv_additem.additem and
    wwv_add_wizard.edititem to upload file. Do they eventually use
    wwsbr_api.add_item and wwsbr_api.add_item_post_upload? What is
    syntax of reference file on remote drive?
    Thanks
    Linda

  • I want to write a program to download file from particular location

    I want to write a program to download file from particular location to client side in jsp.
    Need guidance...

    Hi Hello333,
    You have to use a servlet :
    public class SomeServlet extends HttpServlet {
        public void doPost(HttpServletRequest req, HttpServletResponse resp) throws
                                   ServletException, IOException {
            ServletOutputStream out = resp.getOutputStream();
            resp.setContentType("application/pdf"); // here is an example for a PDF file
            resp.setContentLength(fileLength); // length of the file
            out.write(fileBinaries); // the binaries of the file
    }

Maybe you are looking for

  • Mid-2010 MacBook Pro 15 inch Randomly Restarting

    This started happening several months ago.  It would only happen when the laptop was opened after being closed for a while and having gone into standby.  When it started up, I would sign in and about 10 seconds later it would shut down, as if I were

  • Import from p2 hd cards to final cut x

    It wont import from my p2 hd cards to my FCX ? any answers?

  • Sent Message Errors

    I recently updated my operating system to tiger and with that came the updated version of mail. i use the httpmail plugin to check my hotmail account through mail. when i updated my os i also updated the httpmail plugin. for some reason my sent messa

  • FCP 5.1 question

    I really just was wondering what the difference is between the the regular versions of FCP and the academic versions. If anyone could clear this up for me that would be great.

  • Repository vs. AUR management

    Hi, Is there a way to learn more about how a package fares in a regular repository? For instance, any package in AUR is complete with a discussion list which I can check at any time. There's the Arch Way: upgrades come asap . OK, there's qbittorrent