want to create a base class to get byte[] from http request (api or bitmap