added one more constructor which takes byte[] stream as param, removed constructor with HttpRequest as param