Search found 2 matches

by RianSuhito
Tue Jul 04, 2023 3:48 am
Forum: YAJL-ILE
Topic: Is it possible to send back JSON responses with a file or attachment?
Replies: 3
Views: 7977

Re: Is it possible to send back JSON responses with a file or attachment?

Hi Scott, Thanks for your reply! So if your sample code is executed, the expected result is 2 file which is my_file.json and other_file.dat ? The data of my_file.json which is { "json": "data here" } , its expected to be inside the my_file.json that the requester can download? I'...
by RianSuhito
Mon Jul 03, 2023 4:55 am
Forum: YAJL-ILE
Topic: Is it possible to send back JSON responses with a file or attachment?
Replies: 3
Views: 7977

Is it possible to send back JSON responses with a file or attachment?

Hi, The case is, im using postman/swagger to send the request, and i want to return the response with a file or attachment (which is i need to send using multipart is it?). Is it possible to use YAJL or HTTPAPI? i've tried to use yajl_writeStdout() from YAJL, when i read the YAJLR4 on the yajl_write...