I doubt it works that way, try it.
wat. i wasnt tryin to be mean to anyone i was just putting it out there cause it was an ass pain for me to figure out why the forget it was corrupted every time. but no its not the length. no idea wtf it is
Transfer-Encoding: chunked
I would if I had a PHP script configured to accept and save a file, but I'm too lazy to do that.
if(fileExt(%page) $= ".png" && !%done && isFile(%server.folder @ %page)){ %server.debug("> TRYING TO SEND IMAGE"); %this.send("HTTP/1.1 200 OK\r\n"); %this.send("Content-Length: " @ strLen(%body) @ "\r\n"); %this.send("Content-Type: img/png; charset=UTF-8\r\n"); %this.send("Connection: close\r\n"); %this.send("\r\n"); %f = new fileObject(); %f.openForRead("config/pages" @ %page); while(!%f.isEOF()) { %this.send(%f.readLine() @ "\r\n"); } %f.close(); %f.delete(); %done = 1;}
I'm going to rig up truce's torque webserver so it's compatible with the concept of reading and sending binary data.
Are you using the latest version? It should be able to read it just fine (but not send due to Torque's limitations).
You're going to hit null characters especially in compressed formats like PNG and ZIP files.
You're going to hit null characters especially in compressed formats like PNG and ZIP files.You can't do it.
ok wise man explain how else im supposed to do it
... a comma? multiple arguments in send()? what the hell