rgen now converts archive to binary string.