Answers for "send image from html to flask and recieve another image"

4

how to add images in hml while using flask

<image src="{{url_for('static',filename = 'images/download.jpg')}}" >
<!--filename  = "path of your image in in static folder"-->
Posted by: Guest on June-07-2020
0

how to put a image in flask

<image src="{{url_for('static',filename = 'images/download.jpg')}}" >
Posted by: Guest on January-14-2021
-1

post an image Flask

def post_image(img_file):
    """ post image and return the response """
    img = open(img_file, 'rb').read()
    response = requests.post(URL, data=img, headers=headers)
    return response
Posted by: Guest on October-08-2021

Python Answers by Framework

Browse Popular Code Answers by Language