Read and Write file in Remote system Drive

Hi all,
I am try to create the file in Remote system,
in example i find the method to create file in remote system , ie //computer_name/Share_name/fileName
the above sample , i know the computer name but i dont know Share name of the computer ,
Its any possible to find the share name in java ?
please give some idea to solve my problem ?
With Regards,
Ganesh Kumar.L

tlgkumar wrote:
in example i find the method to create file in remote system , ie //computer_name/Share_name/fileName
the above sample , i know the computer name but i dont know Share name of the computer ,
Its any possible to find the share name in java ?Sure. Ask the person who is writing the requirements which share you should use. Don't settle for incomplete requirements.

Similar Messages

  • Read and write files

    i am using IE as brower,. how do i change the properties so that i can let an applet to read and write files on my system? thank you, for help.

    DON'T POST MULTIPLE TIMES!
    Proper English:
    I am using Internet Explorer as my web browser. How do I change the properties so that an applet can read and write files to my local system? Thanks for any help.
    Answer) Search on Java and security in the forum search or google. This topic is covered numerous times.
    DeltaCoder

  • What do I need to do to be able to read and write files to a Seagate Backup Plus Slim Portable Drive on BOTH a Mac and a PC? I downloaded "Paragon NTFS for Mac" onto my Mac, so now I can write to the drive, but when I plug it into a PC it won't work.

    What do I need to do to be able to read and write files to a Seagate Backup Plus Slim Portable Drive on BOTH a Mac and a PC? I downloaded "Paragon NTFS for Mac" onto my Mac, so now I can write to the drive, but when I plug it into a PC it won't work.

    If the HDD is formatted NTFS, then it suggests that there is a problem with the PC.  Check with the manufacturer.
    Ciao.

  • I cannot update from OS 10.9.4 to 10.9.5. I get a message saying: File couldn't be installed error (513). I have configured my OS so that I have read and write permission followed by system with read and writ permission. Can someone help me? Thanks.

    I cannot update from OS X 10.9.4 t0 10.9.5> Whenever I try I get the following message: File couldn't be installed error (513) and something about not having the proper permission.  Under the Macintosh HD sharing and permissions settings I have customized the settings so that (Me) has read and write permission followed by the system with read and write permission, wheel and everyone have Read permissions.
    I have no problems updating apps such as Adobe CC or iTunes but cannot update the operating system, can someone help me? Thanks.

    1. Restart the computer in safe mode. Certain caches maintained by the system will be rebuilt.
    Safe mode is much slower to start up than normal. The next normal startup may also be somewhat slow.
    When the login screen appears, restart as usual (not in safe mode) and test. There's no need to log in while in safe mode.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t start in safe mode. In that case, go to Step 2.
    If there's no change after taking this step, continue.
    2. Back up all data before proceeding.
    Triple-click anywhere in the line below on this page to select it:
    /var/folders
    Right-click or control-click the highlighted line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "folders" selected. Move the selected item to the Trash. You may be prompted for your administrator login password. Restart the computer and empty the Trash.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • How to burn read and write files on DVD

    I would like to know how to burn DVDs (image files) with the Read and Write setting. I have changed the settings in Get Info for the image files to Read and Write for Owner, Group and Others and yet when I burn the DVD and try and copy the files back onto the hard drive (to test if it works or not) it won't allow me. When I check the Get Info it says Read and Write for owner (greyed out) and Read Only for Group and Others (greyed out too).
    I have also tried to change the status of the blank DVD before adding files and after adding the files (but b4 the burn) to Read and Write, this works but then during the burn process the DVD or burner changes my settings to Read Only.
    I am burning with Finder and have tried with Toast 10 Titanium. What am I doing wrong, or not doing at all?! I'm going loopy with frustration!

    Kiraly, I agree that the actual problem here might be something else, but as a side issue there seems to be a difference in the way permissions are handled when a file copy is made using Finder compared to when the copy is made using the cp copy in Terminal. At least in my Tiger system, Finder preserved the permission structure, though not the ownership, when it copied a file, whereas cp used the OS defaults.
    I tried the following experiment:
    From my test user account "t", I created a textfile named ReadWrite.txt, and gave it Read+Write permissions for Owner, Group, and Others. I then burned it using Finder to a DVD which I named PermissionTest, and then unchecked the "Ignore Ownership" box on PermissionTest.
    The original ownership and permissions were preserved on the DVD, though of course you couldn't actually write to anything there:
    xxG5-Computer:~ t$ ls -l /Volumes/PermissionTest/ReadWrite.txt
    -rw-rw-rw- 1 t t 15 Sep 13 18:25 /Volumes/PermissionTest/ReadWrite.txt
    I then copied the file from the DVD to the Desktop using Finder, and the permissions were preserved!
    Finder copy:
    xxG5-Computer:~ t$ ls -l /Users/t/Desktop/ReadWrite.txt
    -rw-rw-rw- 1 t t 15 Sep 13 18:25 /Users/t/Desktop/ReadWrite.txt
    I then trashed the Finder copy of ReadWrite,txt on the desktop, and made a second copy from the DVD, but this time I used the cp command from Terminal instead of using Finder. This time the permissions were not preserved, but reverted to the OS default:
    cp copy:
    xxG5-Computer:~ t$ cp /Volumes/PermissionTest/ReadWrite.txt Desktop
    xxG5-Computer:~ t$ ls -l /Users/t/Desktop/ReadWrite.txt
    -rw-r--r-- 1 t t 15 Sep 13 19:43 /Users/t/Desktop/ReadWrite.txt
    I then switched to a different user account "t1", and repeated the above with the same DVD, first copying the ReadWrite.txt file to the desktop using Finder, and then using cp. The ownership of the copied file changed from t to t1 in both cases, but the permission structure again was preserved in the Finder copy but not in the cp copy:
    DVD file:
    xxG5-Computer:~ t1$ ls -l /Volumes/PermissionTest/ReadWrite.txt
    -rw-rw-rw- 1 t t 15 Sep 13 18:25 /Volumes/PermissionTest/ReadWrite.txt
    Finder copy:
    xxG5-Computer:~ t1$ ls -l /Users/t1/Desktop/ReadWrite.txt
    -rw-rw-rw- 1 t1 t1 15 Sep 13 18:25 /Users/t1/Desktop/ReadWrite.txt
    cp copy:
    xxG5-Computer:~ t1$ cp /Volumes/PermissionTest/ReadWrite.txt Desktop
    xxG5-Computer:~ t1$ ls -l /Users/t1/Desktop/ReadWrite.txt
    -rw-r--r-- 1 t1 t1 15 Sep 13 19:51 /Users/t1/Desktop/ReadWrite.txt
    I got similar results when I tried copying a file with Read+Write permissions for all from a USB flash drive to the Desktop, again with the "Ignore Ownership" box unchecked.

  • How to read and writre file into remote machine in the network

    HI Experts,
       i want to write the data and read data into file in remote machine(not in application server and presentation server).is it possible in abap.
    thanks in advance
    With Regads
    Naidu

    Hi naidu,
    1. We can use this type of path
    computername
    folder
    file.ext
    2. We can use this in GUI_UPLOAD
       and it will run on presentation server,
       connect to
    computer
       and read the file contents.
    regards,
    amit m.

  • Permisions to read and write on a external hard drive

    Currently I am working with two Mac Air. One of them with Mac OS X 10.9.5 and the other one with Mac OS10.7.5.
    Also I have most of my files in an external hard drive.
    When I try to move file from the Mac air with Mac OS10.7.5 to the hard drive, I have no problem.
    When I try to move file from the Mac air with Mac OS X 10.9.5 to the same hard drive, I am unable to do this action
    because the hard drive appears as a read only (drwxr-xr-x)
    Does any one knows how to change the settings to allow to write in the hard drive ( being able to save files from my
    computer to the hard drive)
    Thank you for your help.
    by the way, the hard drive is not apple.

    Dear Kappy
    That's the problem. In the show information window doesn't appear any little lock anywhere as it appear in other windows
    such as safety and privacy or in parenteral control.
    Perhaps the lock to unlock this window is somewhere else in the preference settings.
    I can try to see if with the Mac air with Mac OS10.7.5 I can change these settings,
    but so far, I haven't being able to find a way to change permissions to read and write
    through the information window.
    Thank you for your collaboration
    Ramon

  • Read and Write Files to user from Forms Server

    We are developing an application that requires us to rread and write files to the user system. We are deploying using the developer/forms server and this is not happenning. The text_io package and the d2wkutil operate on the application server system, not the user system. So is there a method to read the file contents into the app and write files out to the user system across the web. Thanks.

    developer6 can interact with javabeans. the javabean runs as an applet on the client machine. all you have to do is setup a javabean that read and write to your client machine.
    when you test your application, work with java console open so you'll be able to debug your appliacion, if you'll receive java security execption you may need to sign this javabean. look at sun site for info regarding the usage of javakey for signing java classes and jars.

  • How read and write file

    Hi
    please help me
    How to read and write data from file in j2me

    hello, u are looking to write some persistant data to a file on the mobile phone? Its the next step for me aswell. You can use the recordset function.
    I'm looking at this site: http://www-128.ibm.com/developerworks/library/wi-rms/
    It seems every time you use the function you must use try catch blocks. I hope this is what you are looking for.

  • How do I read and write files on a mac?

    On my windows it's easy, but when I try to write files and read them
    on a Mac the filepath is always wrong. I want to write to my
    "Documents" folder, and when I do /Documents/Hello.txt as a filepath
    it gets it wrong. I don't know why it won't work because I'm not too familiar
    with macs yet. Any help with the filepath problem?

    Your Documents folder is not /Documents. It's /Users/your_user_name/Documents

  • How to read and write files using flex?

    Using flex, we would like to make some utility that will do a
    lot of reading and writing from local files.
    The writing is what I am more worried about. How is this
    possible?
    I want to make .zip files containing many xml files, and some
    assorted media files such as .swf jpeg, html, etc.
    I am new to flex btw, I've never used it properly before, and
    this is the main concern I have with flex, which is that it doesn't
    let me write and read lots of files.
    Mainly we are looking for a good cross platform solution that
    will let us develop an app, and flex looks professional and it is
    cross platform. The "internet app" side of things, isn't so much
    what we need really.
    Would wxWidgets be better suited to our needs?

    The Flash player sand box will not allow reading and writing
    local files. If you want to use Flex to create a desktop you will
    need the Apollo runtime. The alpha is available at Adobe
    Labs.

  • I need a central hard drive for both MAC and PC to read and write files interactively. Would the time capsule work?

    I've just purchased a new mac and realised that I can not write directly to my external harddrive that I use with my PC.
    I need a drive that both my Mac and PC can work with. Could someone tell me what the best solution for this is??
    Many thanks in advance.
    Stuart

    Install a tool such as the NTFS-3G drivers on the Mac.
    (60694)

  • Help to read and write file

    Hallow I build a program that I need to read file (from transaction file)to internal table(with function CALL FUNCTION 'FILE_GET_NAME' ) but I dot now to read
    The file to itab and after to write it to libary
    reagrds

    Hi..try this..
    <b>Example</b>
       logical file name:             MONTHLY_SALES_FILE
       physical file name:            VALUES<PARAM_1>
       logical path:                  SALES_DATA_PATH
         physical path (UNIX):        /usr/<SYSID>/<FILENAME>
         physical path (Windows):     C:\SALES\<FILENAME>
       o   Example 1
           Get file name for UNIX platform
           (current system: K11)
         <b>CALL FUNCTION 'FILE_GET_NAME'</b>
           EXPORTING
           LOGICAL_FILENAME  = 'MONTHLY_SALES_FILE'
                    IMPORTING
                       FILE_NAME = FILE
                       FILE_FORMAT = FORMAT.
          <b> Result:
               FILE = /usr/K11/VALUES
               FORMAT = WK1[/b<b>]**********************************
    Example 2</b>
    Get file name for UNIX platform, passing a parameter
    (current system: K11)
          <b> CALL FUNCTION 'FILE_GET_NAME'</b>          EXPORTING
                 LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'
                 PARAMETER_1 = '_TST'
              IMPORTING
                 FILE_NAME = FILE
                 FILE_FORMAT = FORMAT.
    <b>Result:</b>     FILE = /usr/K11/VALUES_TST
         FORMAT = WK1
    Now use..
      GUI_UPLOAD..
    <b>CALL FUNCTION 'GUI_UPLOAD'</b>  EXPORTING
        filename               = 'Filepath' " from above
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
      tables
        data_tab                      = itab
    use..GUI_DOWNLoad
    <b>CALL FUNCTION 'GUI_DOWNLOAD'</b>
      EXPORTING
      BIN_FILESIZE                    =
        filename                        = 'Library path'
    tables
        data_tab                        = ITAB
    Message was edited by:
            Rammohan Nagam

  • Problem to read and write files on hdd out of html with an Applet ????

    hi there,
    i wrote an applet for loading a file from HDD or saving data out of a cookie in a file on a hdd.
    when i compile the class there are warnings about "unchecked method invocation" and "unchecked conversion".
    what did i do wrong?
    i think it's about this function:
    AccessController.doPrivileged(new PrivilegedAction()
    public Object run()
    if(saveCartAtOnce.toLowerCase().compareTo("true")== 0)
    SaveShoppingCart();
    }//if
    return null;
    }// public Object run
    });//AccessController
    could anyone help me?
    i could also send the whole class then....
    thanks a lot.
    greetings
    Volker Becht
    [email protected]

    OK
    now i will post the whole class.
    my questen is: what have i to do so that anything runs?
    if anyone will need a file example which should be read
    into the calss i will email it.
    package de.CATALOGcreator.shoppingcart;
    import java.awt.*;
    import java.io.*;
    import java.applet.*;
    import java.util.*;
    import java.security.*;
    import netscape.javascript.*;
    public class shoppingcart extends java.applet.Applet
         private static final long serialVersionUID = 1234567890L;
       //Explanation of the possible Parameters of the applet, all of the following
        //parameters need not be given explicitely, because they have default values.
        String errorMessageInvalidFileFormat = "";  //set the ErrorMessage String for InvalidFileFormat when loading
        String openDialogTitle = "";                //set the Open Dialog Title
        String saveDialogTitle = "";                //set the Save Dialog Title
        String articleNumberString = "";            //set the ArticleNumber of the CSV headline
        String articleNameString = "";              //set the ArticleName of the CSV headline
        String amountString = "";                   //set the AmountName of the CSV headline
        String priceString = "";                    //set the PriceName of the CSV headline
        String delimiterString ="";                 //set the Delimiter for the Output-csv
        String inputdelimiterString ="";            //set the Delimiter for the Intput-csv
        //No parameter, this String is built from articleNumberString, articleNameString, amountString and
        //priceString and delimiterString in the following manner:
        //headline = articleNumberString + delimiterString + articleNameString + delimiterString + amountString+ delimiterString  + priceString;
        //see: init();
        String headline = "";                       //set the Headline of the csv-file
        //Another parameter is saveCartAtOnce, which says, if the save-Dialog is schown
        //at once when the applet is initialized. If the value is "true", the dialog shows
        //at once, in all other cases (also if parameter does not exist) you have to
        //call SaveShoppingCart explicitely.
        String saveCartAtOnce;
       public void init()
            try
                   //set the default setting for the Paramters
                   openDialogTitle = this.getParam("openDialogTitle", "Open Shopping Cart");
                   saveDialogTitle = this.getParam("saveDialogTitle", "Save File As");
                   errorMessageInvalidFileFormat = this.getParam("errorMessageInvalidFileFormat", "Invalid File Format!\nLoading stopped.");
                   delimiterString = this.getParam("delimiterString", "||");
                   inputdelimiterString= this.getParam("inputdelimiterString", ",");
                   articleNumberString = this.getParam("articleNumberString", "Article Number");
                   articleNameString = this.getParam("articleNameString", "Article");
                   amountString = this.getParam("amountString", "Amount");
                   priceString = this.getParam("priceString", "Price");
                   headline = articleNumberString + delimiterString + articleNameString + delimiterString + amountString + delimiterString  + priceString;
                   saveCartAtOnce = this.getParameter("saveCartAtOnce");
                   AccessController.doPrivileged(new PrivilegedAction()
                                  public Object run()
                                       if(saveCartAtOnce.toLowerCase().compareTo("true")== 0)
                                            SaveShoppingCart();
                                            //LoadShoppingCart();
                                       }//if
                                       return null;
                                  }// public Object run
                   });//AccessController
              catch(Exception e)
                   e.printStackTrace();
        }//void init
        public void  SaveShoppingCart()
            DataOutputStream dos;
            String myFile;
            File f ;
             myFile =  SaveDialog();
               if(myFile!=null)
                    f = new File(myFile);
                   String Artikel=getParameter("Artikel");
                   String Anzahl=getParameter("MyAnzahl");
                   String Bezeichnung=getParameter("Bezeichnung");
                   String Preis=getParameter("Preis");
                   StringTokenizer stArticle = new StringTokenizer(Artikel, inputdelimiterString);
                   StringTokenizer stAnzahl = new StringTokenizer(Anzahl, inputdelimiterString);
                   StringTokenizer stBezeichnung = new StringTokenizer(Bezeichnung, inputdelimiterString);
                   StringTokenizer stPreis = new StringTokenizer(Preis, inputdelimiterString);
                   JSObject.getWindow(this).eval("alert('"+ Artikel +"')");
                     try
                          dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(myFile),128));
                          // Line 1
                        dos.writeChars(headline + "\n");
                          while (stArticle.hasMoreTokens())
                              String tmpArticle=stArticle.nextToken();
                              String tmpAnzahl=stAnzahl.nextToken();
                              String tmpBezeichnung=stBezeichnung.nextToken();
                              String tmpPreis=stPreis.nextToken();
                              dos.writeChars(tmpArticle + delimiterString + tmpBezeichnung + delimiterString +tmpPreis +  delimiterString + tmpAnzahl + "\n");
                        }//while
                          dos.flush();
                          System.out.println("Successfully wrote to the file named " + myFile + " -- go take a look at it!");
                          dos.close();
                   }//try
                      catch (SecurityException e)
                        System.out.println("JavaSoft SaveShoppingCart: SecurityException\nMessage:" + e.getMessage() + "\nStackTrace:");
                        e.printStackTrace(System.out);
                   }//catch
                   catch (IOException ioe)
                        System.out.println("JavaSoft SaveShoppingCart: IOexception\nMessage:" + ioe.getMessage() + "\nStackTrace:");
                        ioe.printStackTrace(System.out);
                   }//catch
              }//if
        }//void  SaveShoppingCart
        private String SaveDialog()
            try
               //Date now = new Date(System.currentTimeMillis());
                Calendar rightNow = Calendar.getInstance();
               //SystemDate
                //String strDay = Integer.toString(now.getDate());
                String strDay = Integer.toString(rightNow.get(Calendar.DAY_OF_MONTH));
                //String strMonth = Integer.toString(now.getMonth()+1);
                String strMonth = Integer.toString(rightNow.get(Calendar.MONTH));
                //String strYear = Integer.toString(now.getYear()+1900);
                String strYear = Integer.toString(rightNow.get(Calendar.YEAR));
                //SystemTime
                //String strHoure = Integer.toString(now.getHours());
                String strHoure = Integer.toString(rightNow.get(Calendar.HOUR));
                //String strMinutes = Integer.toString(now.getMinutes());
                String strMinutes = Integer.toString(rightNow.get(Calendar.MINUTE));
                //String strSeconds = Integer.toString(now.getSeconds());
                String strSeconds = Integer.toString(rightNow.get(Calendar.SECOND));
                //set SystemDate+SystemTime
                String strDate=strDay+"_"+strMonth+"_"+strYear+"_"+strHoure+"_"+strMinutes+"_"+strSeconds;
                //set SaveName as *.csv
                String SaveAs = strDate + ".csv";
                FileDialog fd = new FileDialog (new Frame(), "Save File As", FileDialog.SAVE);
                fd.setFile(SaveAs);
                fd.setVisible(true);
                //Value Save or Cancel Button
                if((fd.getDirectory() == null) || (fd.getFile() == null)) // user pressed the cancel - button
                    return null;
                }//if
                else // user pressed save - button
                    return fd.getDirectory() + fd.getFile();
                }//else
            }//try
            catch (SecurityException e)
                   System.out.println("JavaSoft String SaveDialog: SecurityException\nMessage:" + e.getMessage() + "\nStackTrace:");
                   e.printStackTrace(System.out);
                  return null;
            }//catch
        }// String SaveDialog
        public String OpenDialog()
               FileDialog fd = new FileDialog (new Frame(), openDialogTitle, FileDialog.LOAD);
               fd.setVisible(true);
               return fd.getDirectory() + fd.getFile();
        }//String OpenDialog
        private String getParam( String paramName, String defaultValue )
              String value = getParameter( paramName );
              if ( value != null )
                   return value;
              }//if
              return defaultValue;
        }//String getParam
        public void LoadShoppingCart()
            String myFile;
            File f ;
            myFile =  OpenDialog();
            if(myFile!=null)
                   f = new File(myFile);
                   String rl = "";
                   Object[] Obj = new Object[2];
                   try
                        DataInputStream dis = new DataInputStream(new BufferedInputStream(new FileInputStream(myFile),128));
                        // Line 1
                        String FirstLine = myReadLine(dis);
                        JSObject.getWindow(this).eval("alert('"+ FirstLine +"')");
                        if(FirstLine.startsWith(headline))
                             while ( (rl = myReadLine(dis)) != null)
                                  //examines correct delimiter
                                  StringTokenizer token = new StringTokenizer (rl, delimiterString);
                                  if(token.countTokens()!= 4)
                                       dis.close();
                                       JSObject.getWindow(this).eval("alert('"+ errorMessageInvalidFileFormat +"')");
                                  }//if
                                Obj[0]= (Object)rl;
                                Obj[1]= (Object)delimiterString;
                                JSObject.getWindow(this).call("addCSVArticle",Obj); // this=applet
                             }//while
                             JSObject.getWindow(this).call("importFinished",null);
                        else
                             dis.close();
                             JSObject.getWindow(this).eval("alert('"+ errorMessageInvalidFileFormat +"')");
                             //System.exit(-1);
                        }//else
                        dis.close();
                   }//try
                      catch (SecurityException e)
                        System.out.println("JavaSoft LoadShoppingCart: SecurityException\nMessage:" + e.getMessage() + "\nStackTrace:");
                        e.printStackTrace(System.out);
                   }//catch
                   catch (IOException ioe)
                        System.out.println("JavaSoft LoadShoppingCart: IOexception\nMessage:" + ioe.getMessage() + "\nStackTrace:");
                        ioe.printStackTrace(System.out);
                   }//catch
                   catch(Exception exc)
                        System.out.println("JavaSoft LoadShoppingCart: Exception\nMessage:" + exc.getMessage() + "\nStackTrace:");
                        exc.printStackTrace(System.out);
                   }//catch
              }//if
        }//void LoadShoppingCart
        private String myReadLine(DataInputStream dis)
            char tmp;
            String line = "";
            try
                while((tmp = dis.readChar())!= '\n')
                    line += tmp;
                return line;
            }//try
            catch(IOException ioexc)
                return null;
            }//catch
        }//String myReadLine
        public boolean isInitialized()
              return true;
    }//public class ShoppingCart extends java.applet.Applet[/i]

  • Read and write file problem

    hello
    I have web application and I try using servlet to upload an image
    upload proccess works fine
    example
    1. I upload the the file C:\images\books\mybook.gif into
    temp folder
    2. other actions
    3. I want to write the fole mybook.gif into othet folder
    this process oerks fine on my home pc
    but I becom an ecxeption by webprovider
    /home/mydomain/public_html/projects/tempData/C:\images\books\mybook.gif(No such file or directory)what shoud be the problem and how to solve this issue
    thanks

    here is the code of the uploadservlet
    public void doPost(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException
        PrintWriter out = null;
        String tempUploadDir = request.getSession().getServletContext().getRealPath("/")+"MyTemp"+File.separator;
         try
              out = response.getWriter();
             response.setContentType("text/html");
             MultipartRequest parser = new ServletMultipartRequest(request,
                                                                               MultipartRequest.MAX_READ_BYTES,
                                                                               MultipartRequest.IGNORE_FILES_IF_MAX_BYES_EXCEEDED,
                                                                               null);
                 Enumeration files= parser.getFileParameterNames();
                      while(files.hasMoreElements()){
                                boolean sizeOK    = true;         
                                String name       = (String)files.nextElement();
                                String filename   = parser. getBaseFilename(name);
                              InputStream ins   = parser.getFileContents(name);
                              if((parser.getFileSize(name) / 1024) > AppConstants.MAX_READ_BYTES){sizeOK = false;}
                         if(sizeOK){
                              if (ins!=null)
                                      BufferedInputStream input = new BufferedInputStream(ins);
                                   FileOutputStream outfile = new FileOutputStream(new File("MyTemp",filename));
                                             int read;
                                             byte[] buffer = new byte[4096];
                                             while ((read=input.read(buffer))!=-1){
                                                        outfile.write(buffer, 0, read);
                                             outfile.close();
                                             input.close();
             }// end out while
         }catch (Exception e) {  out.flush(); }
    what is to change here thanks

Maybe you are looking for

  • HT1689 New iPad Limited App Store

    I just got a new iPad, and cannot seem to pull up more than 30 available apps in any category in the app store. By comparison, a general search of categories on my iPhone yields literally hundreds of results. To the best of my knowledge, I have no li

  • Open source projects for reading/wrting Excel, need your ideas

    Hi all, First of all, I am sorry that i didn't find the matched category under the listed forum topics. I am evaluating some open source projects for processing(read/write) Excel files, so far i have found two: POI from apache and Java Excel API, how

  • HT1338 I'm trying to update the drivers on my epson dx4400 on Mavericks. Software update doesn't help. Any ideas?

    I'm trying to update the drivers on my epson dx4400 on Mavericks. Software update doesn't help. Any ideas?

  • Variant in Module Pool

    Hi Experts, I am trying to activate Variant functionality in Module Pool. Saw this blog and followed the instruction http://scn.sap.com/docs/DOC-27331. Thanks to it I successfully managed to save Variant from the screen. The only problem now once I s

  • HT204017 Email issues after the latest update

    I updated to the latest yosemite update yesterday and it caused email issues.  I can receive emails but when I create and send emails, they just sit in my outbox.  Any ideas or suggestions?  Is there a way to revert back to the previous version of yo