#python - Sun 18 Feb 2007 between 15:36 and 15:41

NY Lost Funds



kapacei ti know
thats psuedo
Greatredprint "Content-type: image/jpeg"
righto
kapaceyya..
i did that
Greatredthen print a blank line
then output the image data
kapacethen i opened my jpeg
in notepad
print "alkjfashdjlfdas jepg data"
Greatredactually what should *really* be done is have \r\n at the end of each "line" in the HTTP header
kapacebut it had an EOF error
Greatredkapace: paste your code up on a pastebin?
kapacek one second
slav0nicnow exist any method for hide python source? or best way for do that - write C code with python source and crypte dinary?
kapacehttp://deadbeefbabe.org/paste/3717
Greatredkapace: erm... that's asking for trouble pasting binary data into a python string like that
kapaceya..
so any ideas?
Greatredi'll put my suggestion in
kapacethis is like my second python cgi scripts..
k
marienzerr, huh?
kapace: what are you trying to do?
redirwrite open(file_name, 'rb').read()
masterdriverzslav0nic: don't try and hide script's sources?
kapacerandom image slector
marienzkapace: why are you storing the actual image data inside the script?
kapaceyes..
i guess i shouldn't
Greatredhttp://deadbeefbabe.org/paste/3717
try that
nikosapiHello, 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.
kapaceill right ill try it
Greatredi'm reading the whole image into one big string, really it should be read in chunks, but that should give you the idea
kapacewhere should image be?
same dir?
Greatredgood question
if in doubt, give the whole *absolute* path to the image where i wrote "myimage.jpg"

Page: 1 8 15 22 29 36 

IrcArchive

NY Lost Funds