Next.js Discord

Discord Forum

Next13 API send img from backend to frontend

Unanswered
gref9730 posted this in #help-forum
Open in Discord
Hello I would like to create a btn on frontend which on click sends absolute path of the file which is stored on the server (im fetching the absolute path of the stored img from db and storing it in useState) and I cant set up NextResponse stream or headers or send it anyhow.. can someone help me out please? my api handler looks like this

1 Reply