I have a http endpoint that wants me to send images in this format:
url = 'https://example_image_url.jpg'
img_bytes = requests.get(url).content
endpoint.predict(img_bytes)
If I have an image in the format of a numpy array, how can I convert it to be identical to the above img_bytes
format?