save with attachements in binary