lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] LWIP--solution of dump runt-time generated large binary fil


From: Jerry Zhang
Subject: [lwip-users] LWIP--solution of dump runt-time generated large binary files
Date: Mon, 4 Jul 2022 11:20:39 +0800

I am using LWIP in embedded device with httpd runs, trying to find a solution of dumping large binary files by web, which is run time generated. my http response(data dump) will be like this

200 OK
Content-Type: application/octet-stream; name=xxx_data.bin
Content-Disposition: attachment; filename=xxx_data.bin
Content-Length: xxxxx

"my raw binary data, not string..."

I read the CGI/SSI code, the elegant solution is not clear to me yet. Can i use the CGI/SSI to implement it? Can i write a non-shtml file like the following and then use makefsdata.exe to produce the fsdata, does ssi tag work in this file or it will only work in html body?

200 OK
Content-Type: application/octet-stream; name=xxx_data.bin
Content-Disposition: attachment; filename=xxx_data.bin
Content-Length: xxxxx

<!--#tag_data-->

In another way, my requirement is do dump a virtual binary file(*.bin) as an attachment, should i use the makefsdata.exe to create this virtual file which is actually run-time generated

Any other recommendation about an elegant solution will be appreciated.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]