docs: private byte[] getFileBytes(File file) throws CmsException {
  
          byte[] buffer = null;
  
          FileInputStream fileStream = null;
          int charsRead;
          int size;
          try {
              fileStream = new FileInputStream(file);
              charsRead = 0;
              size = new Long(file.length()).intValue();
              buffer = new byte[size];
              while (charsRead < size) {
                  charsRead += fileStream.read(buffer, charsRead, size - charsRead);
              }
              return buffer;
          } catch (IOException e) {
              throw new CmsDbIoException(
                  Messages.get().container(Messages.ERR_GET_FILE_BYTES_1, file.getAbsolutePath()),
                  e);
          } finally {
              closeStream(fileStream);
          }
      }