Refactoring byte[] to String for documentAttachements