1 Reply Latest reply: Jun 4, 2008 12:53 PM by 807601 RSS

    Error in encoded stream: needed 4 valid base64 characters but only got 3 be

    807601
      Folks,

      We are trying to copying a file in to temp directory. But we keep getting this error. Please help..

      import java.io.FileOutputStream;
         myfile = File.createTempFile(atType, fName,
                         new File(FileUtils.getTmpRootDir()));
                 output = new FileOutputStream(myFile); 
      java.io.IOException: Error in encoded stream: needed 4 valid base64 characters but only got 3 before EOF, the 10 most recent characters were: "-A-G-EASDF"

      _Thanks Much
      :rolleyes: