class_docstr: BYTES IO.
  Example:
  
  .. code-block:: python
  
      from towhee import AutoPipes, api_service
      from towhee.serve.io import TEXT, NDARRAY, JSON, BYTES
  
      service = api_service.APIService(desc="Welcome")
      img_emb = AutoPipes.pipeline('image-embedding')
  
      @service.api(path='/embedding', input_model=BYTES(), output_model=NDARRAY())
      def chat(image_bytes: bytes):
          return img_emb(image_bytes).to_list()[0][0]
  
  Client:
      HTTP:
  
      .. code-block:: python
  
          import requests
          with open(image_path, 'rb') as f:
              print(requests.post('http://127.0.0.1:8000/embedding', data=f.read()).json())
  
      GRPC:
  
      .. code-block:: python
  
          from towhee.serve.grpc.client import Client
          c = Client('0.0.0.0', 8000)
          with open('/home/junjie.jiangjjj/images/1.png', 'rb') as f:
              c('/embedding', r.read())
code: def from_http(self, request: "fastapi.Request"):
      return asyncio.run(request.body())
  
imports: import asyncio
  from .base import IOBase, IOType
label_desc: Use image node_id 1 for calling the BYTES obj's underlying member method code with example usage: obj.from_http(request) and returns: asyncio