RE: getting binary cgi post data

new topic     » topic index » view thread      » older message » newer message

>From: aku saya <akusaya at gmx.net>
>Subject: getting binary cgi post data
>
>I tried to process http file uploading, but the file saved contain no
>byte #0D's, it seems like the standard input is treated as a text file
>rather than binary file. How to overcome this?
>

   This is currently not possible. The interpreter always opens stdin in 
text mode, and this cannot be changed. This should be fixed in 2.5, if 
Robert remembers, which I think he should.

>I used the standard getc(0) until the file boundary comes, but the #0D
>bytes disappears. I write the input to a output file opened with "wb".
>

   The output method does not matter; it is the input that is the problem.

>Please help, thanks!
>

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu