Add get/set binary data function