Save byte[] to a file

I wrote a function to save a file taken via camera2, the function does not return any error but I can not find the file, it is correct? P.S.bytes is not null

    private void saveImageToDisk(final byte[] bytes) {

    final File file = new File(Environment.getExternalStorageDirectory() + "/"  + "test_pic.jpg");

    try (final OutputStream output = new FileOutputStream(file)) {
        this.picturesTaken.put(file.getPath(), bytes);
    } catch (final IOException e) {
        Log.e(TAG, "Exception occurred while saving picture to external storage ", e);