add bulk method that accepts data as byte array

it would be great to have a bulk method that accepts data as byte array, this is necessary because data can be large and i want to send it gzip compressed (ES: http.compression: true)
Merge pull request #9 from l0rdn1kk0n/patch-1

add bulk method that accepts data as byte array