skip to Main Content

How to get gif from get response – Javascript

Here i have my flask function that returns the image: @app.route("/getResults", methods=['GET']) def get_results(): print(request) job_key = request.args["id"] filename = '/home/pat/projets/giftmaker/webapp/public/workingDir/1/test.png' return send_file(filename, mimetype='image/png') then I have my attemp to read it: export function Download ({jobID}) { const [img, setImg]…

VIEW QUESTION

Nested Object not showing the component – Reactjs

Strangely, I have <Avatar> that works with single object parse using .map <Flex> <div></div> {studentsjson.map((thr) => ( <Avatar color="red" key={thr.id} component={Link} to="/complete"> {thr.Name} </Avatar> ))} </Flex> However, below does not work { teacher.map((thr) => thr.students.map((stu) => { <Avatar color="red" key={stu.id}…

VIEW QUESTION
Back To Top
Search