On Tue, 4 Oct 2022, jian he via curl-library wrote:
If the file is text, then all things would be pretty easy. However, if I
upload a png file, Then the auto generated c code will not build and run
again.
First: strings are capped in the --libcurl output. I only shows the 2000 first
characters.
Then: there's a bug in the string output generator that Patrick fixes here:
https://github.com/curl/curl/pull/9643
The curl tool loads the file into a memory buffer and then points libcurl to
that.
--
/ daniel.haxx.se
| Commercial curl support up to 24x7 is available!
| Private help, bug fixes, support, ports, new features
| https://curl.se/support.html
--
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html