Added binary download support for rest service.