This is HttpTrigger function. where i want to pass binary image in Local host (http://localhost:7071/api/HttpTrigger1) as appending to parameter like below example http://localhost:7071/api/HttpTrigger1//9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAYGBgYHBgcICAc.......
My code
import base64
import numpy as np
import cv2 as cv
def main(req: func.HttpRequest) -> func.HttpResponse:
base_64_image_bytes = req.get_body()
image_bytes = base64.b64decode(base_64_image_bytes)
img_nparr = np.frombuffer(image_bytes, dtype=np.uint8)
image = cv.imdecode(img_nparr, cv.IMREAD_COLOR)
cv.imwrite(TEMP_IMAGE_FILENAME, image)
return func.HttpResponse("Done", status_code=200)
but base_64_image_bytes is empty. please help me out....