UUEncoded attachment
Hi everybody,
i hope this is the right place to ask, i have some problem when saving UUEncoded attachment, this is how i handle attachment saving:
publicvoid createFile(String fileName, InputStream fis){
OutputStream fos;
File fl;
try{
if (fis ==null || fis.available() < 0){
return;
}
fl =new File(this.fullWorkingPath + fileName);
fos =new FileOutputStream(fl);
try{
int i = 0;
while ((i = fis.read()) != -1){
fos.write(i);
}
}catch (Exception e){
fis.close();
fos.close();
e.printStackTrace();
}
fos.close();
fis.close();
}catch (Exception e){
e.printStackTrace();
}finally{
fl =null;
}
}
and this is the exception i get in fis.read():
java.io.IOException: UUDecoder error: No Begin
at com.sun.mail.util.UUDecoderStream.readPrefix(UUDecoderStream.java:130)
at com.sun.mail.util.UUDecoderStream.read(UUDecoderStream.java:61)
has anyone any idea about this?
Thank you for your time :)

