                bufferedInputStream.close();                 bufferedOutputStream.write(output);                    bufferedOutputStream.flush();                 bufferedOutputStream.close();         