https://issues.apache.org/bugzilla/show_bug.cgi?id=53811

--- Comment #2 from Abu Abdullah <[email protected]> ---
(In reply to comment #1)
> piece of code:
> 
> final TarOutputStream tarFile = new TarOutputStream(new
> FileOutputStream(pathName));
> tarFile.setLongFileMode(TarOutputStream.LONGFILE_GNU);
> 
> ....
> 
> TarEntry tarEntry = new TarEntry(path);
> tarEntry.setSize(new File(pre_path+path).length());
> tarFile.putNextEntry(tarEntry);
> in = new FileInputStream(convertPath(choosedAudioPath)+path);
> while((len = in.read(buf)) > 0)
>  tarFile.write(buf, 0, len);
> 
> tarFile.closeEntry();
> in.close();

sorry, small mistake. it is:
in = new FileInputStream(pre_path+path);
instead of:
in = new FileInputStream(convertPath(choosedAudioPath)+path);

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to