API - How can I pass byte array type using REST feature?

Hi Friends,

I am passing values in sql database using HTTP feature. During the process, I need to send an image in byte array format. Is it possible to do that by httprequest activity. I can see an attachment option. But I guess that is not converting variable in byte array format.

If that is not possible, is there a way to convert image into byte array?

Thanks a ton for your help