Upload the file in Unix at some specified directory

Hi,
I have to store some file in Unix Box at some specified location through OAF Page.
I have seen all the threads, they work for storing the file in Database. I have done that previously and that works fine.
Please let me know the approach and the way I should follow to store the file in Unix.
Appriciate for an early reply.
Thanks
Anoop

Anoop,
What do you mean by the link has nothing? Do you mean that the link doesn't work?
FIle Upload
I can see it.
If it still doesn't, try searching the forumns for the thread with subject "FIle Upload" posted by "user526196".

Similar Messages

  • "\n" problem while downloading the file in unix environment

    Hi folks,
    I have some problem in uploading and downloading the file in unix environment..
    This is my sample code i am using.
    File userDataFile = new File("xyz".csv");
    out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(userDataFile),"UNICODE"));
    out.write("Name"+"\t");
    out.write("Age"+"\t");
    out.write("Dob"+"\t");
    out.write("Contact"+"\n");
    for(int i=0;i<retList.size;i++){
    out.write("xyz"+"\t");
    out.write("22"+"\t");
    out.write("300399"+"\t");
    out.write("xyzzz"+"\n");
    as per this i wrote code for generating the reports. Its contains some 7k records.
    Its works in Windows environment.
    Some times in Windows environment if the contents size is 7000 records means
    i got only the headers..
    I am not getting any real records.
    I am not sure.. my client is using may be an unix environment..
    Please give the solutions for this..
    Very thanks in advance.

    Hi Jothi,
    This is not an answer to your question. It is a question for you instead. I have tried to reach you on several forums regarding the HAP_DOCUMENT documentation you have.
    Again, I am really sorry to contact you through a differente forum, but I really need the HAP_DOCUMENT documentation for my project.
    Please send me a message to [email protected]
    Thanks again.
    JULIAN CASTRO

  • How to upload the file without using java components?

    Hello,
    I need to upload the file using JSP, but I don't want to use java componets(such as
    jspsmart).
    Who can tell me how to realize it? This issue is very important to me,
    thanks all in advance!

    make you're own servlet using the multipartrequest from o'reilly.
    easy and simple, no jspsmart, only 1 jar file and some descent programming.
    I use it like that...

  • How to use the applet to upload the file ?

    I am facing a problem that , I don't know how to use applet to upload the file to server .
    I have the code to upload the file by using servlet .
    However , I want to use applet to upload the file .But , the format of servlet I have used is "multipart/form-data"
    but applet can not do so , I think it is the header of the data . I don't know what can I do .....
    Can anyone give me some suggestion or coding to write the file upload by using applet ?
    Besides , using the socket are there any other choices ?
    thx a lot !!!!

    Well, to upload files you need to
    Server App - running on the webserver
    1. Open a socket
    (Study the classes Socket, InputStream, OutputStream in the Java API)
    2. Wait for connection.
    3. Open FileOutputStream
    3. Read data from InputStream, Write to FileOutputStream
    4. Close InputStream and FileOutputStream
    Applet
    1. Open a filedialog (Swing, AWT)
    2. Open file (FileInputStream)
    3. Connect to uploadServer (steps described above)
    4. Read FileInputStream, write OutputStream
    5. Close File and Socket
    This is just simpl and basic terms get you on the right track
    Jonas

  • Jlaunch process using High CPU, while uploading the files in XI system

    Hi,
    we are facing  jlaunch high cpu usage problems, while uploading the files of more than 25MB, in XI system. PIAFUSER is running on PRIV mode and huge java core dumps and heapdumps are  getting generated in server0 node
    error message->  - Out of memory situations running XI
    Exception thrown [Fri Sep 30 13:57:27,855]:Exception thrown by application running in JCo Server
    java.lang.Exception: java.lang.OutOfMemoryError
         at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:237)
         at com.sap.engine.services.rfcengine.RFCJCOServer$J2EEApplicationRunnable.run(RFCJCOServer.java:254)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:219)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    first , we tested in Quality system, where,we are getting same problems as well.
    SAP Note 146289 - Parameter Recommendations for 64-Bit
    increased em/intial_size_MB  from 512MB to 2 GB and em/global_area_MB value from 96 to 256
    SAP Note 723909 - Java VM settings for J2EE 6.40/7.0
    we added some jvm parameters in confitool
    -Djava.awt.headless=true
    -XX:+UseParNewGC
    -XX:+PrintGCTimeStamps
    Present  JVM values in XQ1 system..
    Xmx  value 3072
    xms  value 2048
    xmn  value 1000
    we have tested JCo RFC's  AI_DIRECTORY_JCOSERVER and AI_RUNTIME_JCOSERVER , connection test was OK.
    We increased parameter com.sap.aii.ib.client.jnlp.j2se.maxheapsize from 512m to 800m
    Please advice me.. how to proceed..
    regards,
    balaram

    Hi Balaram,
    Kindly review below note, Hope it suits.
    716927 - Overview of AIX JVM for NetWeaver 2004 and 7.0 (2004s).
    Regards,
    Mani

  • Problem while uploading the file page is not forwarding

    Hi,
    Please tell me the solution for this.
    I'm uploading the file, i'm getting the values very thing, but the page is not forwarding what happening i don't no.
    Here is the code.
    <HTML>
    <%@ page language="java" import="javazoom.upload.*,java.util.*" %>
    <%@ page errorPage="ExceptionHandler.jsp" %>
    <HEAD>
    <BODY style="font:'Bookman Old Style' size="3"">
    <jsp:useBean id="upBean" scope="page" class="javazoom.upload.UploadBean" >
    </jsp:useBean>
    <%
    // Uploading file code
    if (MultipartFormDataRequest.isMultipartFormData(request))
    // Uses MultipartFormDataRequest to parse the HTTP request.
         MultipartFormDataRequest mrequest = new MultipartFormDataRequest(request);
    String todo = null;
         if (mrequest != null) todo = mrequest.getParameter("todo");
         if ( (todo != null) && (todo.equalsIgnoreCase("upload")) )
                        Hashtable files = mrequest.getFiles();
         UploadFile file = (UploadFile) files.get("uploadfile");
              if ((file != null) && (file.getFileSize() <= 82000))
                        {System.out.println("<li>Form field : uploadfile"+"<BR> Uploaded file : "+file.getFileName()+" ("+file.getFileSize()+" bytes)"+"<BR> Content Type : "+file.getContentType());
                    // Uses the bean now to store specified by jsp:setProperty at the top.
                        upBean.store(mrequest, "uploadfile");
                        else
                        System.out.println("Not Uploaded");
    if (mrequest != null)
         String Schoolname= mrequest.getParameter("schoolname");
         session.setAttribute("saSchoolname", Schoolname);
    System.out.println("Schoolname     "+Schoolname);
    %>
                        <jsp:forward page="FileTransfer.jsp"/>
    <%     
         else out.println("<BR> todo="+todo);
    //System.out.println(session.getAttribute("saswrite"));
    String amessage = request.getParameter("passmsg");
    %>
    <form name='subregiform' method="POST" onsubmit='return checkForm()' action ="FileSubmit2.jsp" ENCTYPE="multipart/form-data">
    <table width="491" border="0" cellpadding="2" >
    <tr>
    <td width="171" align="right"><br> S.S.C  :</td>
    <td width="103" align="center">Institution Name
         <input type="text" name="schoolname" size = 12 maxlength = 35 value = <%
              if(session.getAttribute("saSchoolname")!= null){%>
         <%=session.getAttribute("saSchoolname")%><%}%>>     </td>
    <tr><td width="165"><div align="right">Upload Resume :<br> <br> <br></div></td>
    <td width="356"><input type="file" name="uploadfile" size = 20>
    <font size=1><br>    <I>(Only .doc,.rtf,.txt,.html)</I></font><BR>
       <% if (amessage !=null){ %><FONT SIZE="" COLOR="RED"><strong><%= amessage %></strong></FONT><% }%> </td>
    </tr>
    <tr>
    <td colspan="2">
    <p align="center">
         <input type="hidden" name="todo" value="upload">
    <input type="submit" name="Submit" value="Submit">
         </p>
    </td>
    </tr>
    </table>
    </form>
    </BODY>
    </HTML>

    This code is a mess! Don't put your logic and control into your JSP; use the JSP only for display!
    As for your error, it's because you can't forward after the response has been committed. An illegal state exception will be thrown except you can't see it in the browser because the server has already committed the response and can't change it now. You need to get rid of the forward action. Put in a link to that page instead. Or use a a meta tag to redirect.
    But really, this code cannot be modified to get rid of the problem. It should be scrapped and you should rethink your design. Have a servlet do your control and all this uploading code should also be put into a servlet; never in a JSP
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    Edited by: nogoodatcoding on Oct 5, 2007 2:56 PM

  • Error while uploading the file from Allpcation server in LSMW-7th step

    Hi Experts,
    what should be the specific CODE PAGE should be maintained while uploading the file from application server in LSMW-7th Step
    Thanks in advance,
    KSR

    Hi
    I mean that there is any seperate CODE PAGE which comes at the bottom of screen while uploading the file from the application server in 7th step.
    Is there any specific CODE PAGE to be maintained...
    Thanks in advance
    Oarsk

  • How to upload the files using struts

    Hi all
    My requierment is to upload the files from the client machine and save it on the server, the file size must not increase more than 250 MB and to validate that we cannot do validation on the client machine so we have to validate it on the server side. below is my code kindly go through it if there is any problem in Bussiness Logic
    1>Upload.jsp
    2>UploadForm.java
    3>UploadAction.java
    *1>Upload.jsp*
    <%@ page language="java"%>
    <%@ page import="java.io.*"%>
    <%@ taglib uri="/WEB-INF/struts-bean" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
    <html>
    <body bgcolor="white">
    <form name="uploadForm" action="TestApplication/upload" method="post" enctype="multipart/form-data">
    <table>
    <tr>
    <td align="center" colspan="2">
    <font size="4">Please Enter the Following Details</font>
    </tr>
    <tr>
    <td align="left" colspan="2">
    <font color="red"></font>
    </tr>
    <tr>
    <td align="right">
    File Name
    </td>
    <td align="left">
    <input type="file"  name="theFile">
    </td>
    </tr>
    <tr>
    <td align="center" colspan="2">
    <input type="submit" value="UPLOAD">
    </td>
    </tr>
    </table>
    </form>
    </body>
    </html>*2>UploadForm.java*
    package com.MyPack.Datamatics;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.upload.FormFile;
    public class UploadForm extends ActionForm
         private static final long serialVersionUID = 1L;
    private FormFile theFile;
       public UploadForm(){}
       * @return Returns the theFile.
      public FormFile getThefile() {
        return theFile;
       * @param theFile The FormFile to set.
      public void setThefile(FormFile theFile) {
        this.theFile = theFile;
    } *3>UploadAction.java*
    package com.MyPack.Datamatics;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    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 org.apache.struts.upload.FormFile;
    public class UploadAction extends Action
      public ActionForward execute(
        ActionMapping am,
        ActionForm af,
        HttpServletRequest req,
        HttpServletResponse res) throws Exception{
         UploadForm myForm = (UploadForm)af;
            // Process the FormFile
            FormFile myFile = myForm.getThefile();
            String contentType = myFile.getContentType();
            String fileName    = myFile.getFileName();
              int fileSize       = myFile.getFileSize();
              String data="";
              try{
            java.io.InputStream fileData  = myFile.getInputStream();
             String path="E:/store";
              File f = new File(path);
              java.io.OutputStream outputStream = new FileOutputStream(f+"/"+fileName);
              int temp = 0;
              byte[] buffer = new byte[8192];
              temp = fileData.read(buffer, 0, 8192);
              while ((temp) != -1) {
              outputStream.write(buffer, 0, temp);
                   outputStream.close();
                   data = "file has beeb written to E:/store" + fileName;
                   fileData.close();
              catch (FileNotFoundException fnf)
              { System.out.println("Cannot Found the file");
               System.out.println(data);
              System.out.println("contentType: " + contentType);
             System.out.println("File Name: " + fileName);
             System.out.println("File Size: " + fileSize);
          return am.findForward("success");
    }Thanks in Advance

    [help link 1|http://www.roseindia.net/struts/strutsfileuploadandsave.shtml]
    [help link 2|http://www.roseindia.net/struts/strutsfileupload.shtml]

  • Information Broadcast Email File - Where is the file in Unix directory?

    Hi,
    I am using Information Broadcasting to email the BI report.   We use Unix as the application server.
    In transaction SOSV, I can get detailed information on the file (attachment) and the send status.  There is a requirement to encrypt the file in Unix server.   Does anyone know where the file resides in Unix when the report is generated from Information Broadcasting?   What's the Unix directory?
    Any information would be appreciated.
    Thank you.
    Rebecca

    I added the path of the servlet.jar to the CLASSPATH. Now my modified
    file content is as follows:
    WINDOWS 2000 Environmental variable changes:(CLASSPATH)
    C:\Program Files\PhotoDeluxe BE 1.1\AdobeConnectables;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;C:\jakarta-tomcat-4.1.12\common\lib\servlet.jar
    AUTOEXEC.BAT:
    set path=%path%;c:\onnet32
    SET PATH=C:\jdk1.3.1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
    SET JAVA_HOME=C:\jdk1.3.1
    SET CATALINA_HOME=C:\jakarta-tomcat-4.1.12
    SET CLASSPATH=.;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;C:\jakarta-tomcat-4.1.12\common\lib\servlet.jar
    With this I am executing the command: javac test.java. However, it is still giving lot of error messages
    All the messages are 'cannot resolve symbol' associated with the Servlet class, Servlet Request, Server Exception etc. In the very first error message it states that: 'package javax.servlet does not exist'.
    I would appreciate any help. Thanks in advance.

  • Problem in upload the file...

    Hi Gurus,
    I am new  in ABAP. I want to upload a file to Application Server.
    1. I create a file in Excel and give extension .prn and save on desktop so i think this file is on my presentation server.
    2. Now thru ABAP Editor i want to upload this file to Application Server
       Because i have to use this file in BDC.
    please give me the process..
    Thanks in Advance..
    Kind Regards
    Yogesh

    Hi Yogesh,
       As per the above suggestion you can use CG3Z tcode to upload your file directly from PS(Prersentation Server) to AS (Application Server).
       Otherwise if you need the procedure for coding, then first sav the file in .xls or .csv  or any format and upload the file into an internal table using any standard FM as per the extension ehich you use. Later use OPEN DATASET stmt. and open a file in AS and pass the data from your Internal table into this file through TRANFSER  stmt and after completing the required process use CLOSE DATASET stmt accordingly.
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards
    Nagaraj T

  • I have purchased a monthly subscription to Adobe PDF pack so that i can edit a PDF file, i have uploaded the file and its now in "my assets". how do i now edit this file??

    I have purchased a monthly subscription to Adobe PDF pack so that i can edit a PDF file, i have uploaded the file and its now in "my assets". how do i now edit this file??

    You can't edit a file with PDF Pack, but you should be able to convert it to a Word document, and if you are really lucky edit THAT and make a new PDF. Don't expect too much though!

  • 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.

  • How to Find the file in UNIX?

    Hello Team,
    I Have below list files and i have to find the file with latest date and time
    CHECK_300914_200747_xxaa_account_name_20140930195924.txt
    CHECK_300914_203213_xxaa_account_name_20140930203055.txt
    CHECK_300914_205625_xxaa_account_name_20140930200219.txt
    CHECK_300914_211345_xxaa_account_name_20140930200446.txt
    CHECK_300914_213836_xxaa_account_name_20140930200718.txt
    CHECK_300914_215928_xxaa_account_name_20140930201143.txt
    In a list of files "CHECK_300914_215928_xxaa_account_name_20140930201143.txt" is the latest file i.e. ddmmyy:300914 and hhmmss:215928
    Can you please help me to find the file in UNIX
    Thanks in Advance,

    touch CHECK_300914_215928_xxaa_account_name_20140930201143.txt
    touch CHECK_300914_211345_xxaa_account_name_20140930200446.txt
    touch CHECK_300914_205625_xxaa_account_name_20140930200219.txt
    touch CHECK_300914_203213_xxaa_account_name_20140930203055.txt
    touch CHECK_300914_200747_xxaa_account_name_20140930195924.txt
    ll
    total 0
    -rw-r--r-- 1 oracle oinstall 0 Oct  7 11:27 CHECK_300914_200747_xxaa_account_name_20140930195924.txt
    -rw-r--r-- 1 oracle oinstall 0 Oct  7 11:27 CHECK_300914_203213_xxaa_account_name_20140930203055.txt
    -rw-r--r-- 1 oracle oinstall 0 Oct  7 11:27 CHECK_300914_205625_xxaa_account_name_20140930200219.txt
    -rw-r--r-- 1 oracle oinstall 0 Oct  7 11:26 CHECK_300914_211345_xxaa_account_name_20140930200446.txt
    -rw-r--r-- 1 oracle oinstall 0 Oct  7 11:25 CHECK_300914_213836_xxaa_account_name_20140930200718.txt
    -rw-r--r-- 1 oracle oinstall 0 Oct  7 11:25 CHECK_300914_215928_xxaa_account_name_20140930201143.txt
    We are interesting in file with maximal values in "field" 2 and 3 assuming that fields are parts of filename separated with "_". I especially created (the file we are interested in) CHECK_300914_215928_xxaa_account_name_20140930201143.txt file to be the first created/modified file.
    find . -name CHECK_300914_215928_xxaa_account_name_20140930201143.txt
    ./CHECK_300914_215928_xxaa_account_name_20140930201143.txt
    will definitely work. But we should know the file name. As for topicstarter note it is not the case.
    ls -tr . | tail -1
    CHECK_300914_200747_xxaa_account_name_20140930195924.txt
    gave incorrect file.
    ls -l . | cut -d" " -f10 | sed 's/\(^CHECK_\)\([0-9]\{2\}\)\([0-9]\{2\}\)\([0-9]\{2\}\)\(.*\)/\1\4\3\2\5/' | sort -r | head -1 | sed 's/\(^CHECK_\)\([0-9]\{2\}\)\([0-9]\{2\}\)\([0-9]\{2\}\)\(.*\)/\1\4\3\2\5/'
    CHECK_300914_215928_xxaa_account_name_20140930201143.txt
    P.S.
    I much apologize for an error in back filename transformation. Correct is marked in bold red.

  • How to upload the files

    how to upload the files from javascipt.can any body send the code for that.

    You can't upload files with Javascript, that would be a huge security hole. At highest you can use Javascript to submit a form with a file field, but the user still have to select the file himself.

  • Field not visible when uploading the file in application ser

    Hi,
    I have added a new field at the end of a structure and When i upload the data in the application server it is not visible there. The new field length is 30chars(say field 'A')  and the one just before this one is 250 chars(say field 'B'). When i reduce the length of field 'B' to 30 chars or 40 chars the value which i populated in field 'A' is visble in the output file.
    Since the complete file was not visible in AL11 transaction, i used the CG3Y tcode as well to download the data to presentation server so that i can view the complete file. Even after downlaoding in presentation server the new field value is not visible.
    Can anyone please suggest why is the value in field 'A' not visible when the length of field 'B' is 250 chars? Also, how can i display the value of the new field in the application server.I cannot change the layout of the structure as per the requirement. Any help will be very useful.
    Thanks in advance,
    Sneha.

    Hi Sneha.. Happy new year
    <you subject is missing ver from the server, thats why your server doesnt like you :P>
    -ok, lets go step by step. how did you upload the file?
    -after uploading the file check the file in OS level(goto SM69, execute CAT, in additional parameter (not in parameter) give the full path (case sensitive), execute. ). here you can see the actual content of the file... check you data is present or not
    -which structure are you using to download and upload? a temp work area.. then please provide the WA details, so that i can try on my system.
    lets see what happens next
    one more thing: regarding AL11, it can read upto length 510 characters. check program RSWATCH0 form SHOW_FILE. here the read dataset into butffer is 510 characters.

Maybe you are looking for

  • How to set the size of a textPane

    I have the following text pane:      private JTextPane objTPOutput = new JTextPane (); /* Output information to the Text Area */                objTPOutput.setText("Student Name = " + name +                                         "\nClass Name = " +

  • 3D efect problem

    Hello. I'm new here and just start my adventure with as3. I have a problem with a 3D effect during play a rotation of the cube. I made a cube with sample textures and texture of the walls while playing "overlap" each other. Source code: function rota

  • Finder icons not displaying in Yosemite

    Not sure if this is an Apple issue or Adobe but my INDD icons are no longer showing in Finder in column view, instead I get a blank white icon. The strange thing is that it shows preview window and the small icon shows when I Command+I view.  I have

  • How to use the Arpeggiator with Software Synths

    I recently bougth Logic Pro 7.2 and it took me a while to find out how to get the soft synths to work. At the moment I am only using the computer keyboard to play in the notes and it works well so far. If you want to activate a soft synth, choose an

  • CSV Format Download?

    Hi Guys,                I got error while downloading the data into a text file in CSV or Comma seperated values format . The error says that "Only Character type data objects are supported at the argument Position OP1 for the statement "IF......op1