|kapace||i ti know|
|Greatred||print "Content-type: image/jpeg"|
i did that
|Greatred||then print a blank line|
then output the image data
|kapace||then i opened my jpeg|
print "alkjfashdjlfdas jepg data"
|Greatred||actually what should *really* be done is have \r\n at the end of each "line" in the HTTP header|
|kapace||but it had an EOF error|
|Greatred||kapace: paste your code up on a pastebin?|
|kapace||k one second|
|slav0nic||now exist any method for hide python source? or best way for do that - write C code with python source and crypte dinary?|
|Greatred||kapace: erm... that's asking for trouble pasting binary data into a python string like that|
so any ideas?
|Greatred||i'll put my suggestion in|
|kapace||this is like my second python cgi scripts..|
kapace: what are you trying to do?
|redir||write open(file_name, 'rb').read()|
|masterdriverz||slav0nic: don't try and hide script's sources?|
|kapace||random image slector|
|marienz||kapace: why are you storing the actual image data inside the script?|
i guess i shouldn't
|nikosapi||Hello, I have a problem with a thread in a script. The function that's supposed to be threaded only will run after I call the_thread.join() which is pointless because then there's no point in having a a thread in the first place.|
|kapace||ill right ill try it|
|Greatred||i'm reading the whole image into one big string, really it should be read in chunks, but that should give you the idea|
|kapace||where should image be?|
if in doubt, give the whole *absolute* path to the image where i wrote "myimage.jpg"