mIRC Home    About    Download    Register    News    Help

Print Thread
#75435 16/03/04 06:56 AM
Joined: Mar 2004
Posts: 8
A
ADubb Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Mar 2004
Posts: 8
im having problems bread'ing binary files.
i do this:
/bread mirc.exe 0 100 &
/bwrite mirc.exe.bac -1 -1 &binary
and i get a error saying: * /bwrite: invalid parameters

iv tried it on picture files too.. but same error.

what im looking to do is send a file (a picture file) to a http client (im acting as the webserver, and there requesting a file)

thanks.

#75436 16/03/04 04:20 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Presumably you left the &binary out only when you posted here, or you'd be getting a /bread error instead. smile

Binary variables are destroyed as soon as the script which created them has finished. If you were trying that on the commandline, with two seperate commands, there would no longer be a &binary variable to .bwrite...
Code:
//bread mirc.exe 0 100 &binary | bwrite mirc.exe.bac -1 -1 &binary | echo -a $file(mirc.exe.bac)

#75437 16/03/04 04:33 PM
Joined: Mar 2004
Posts: 8
A
ADubb Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Mar 2004
Posts: 8
thanks. also,

what is a good way to /bread a whole file?

like i said, i want to create a webserver that will send a picture of a certain user (basically a profile bot)

i can do a /bread filename 0 [what should go here] &binvar
i am confused as to tell how much of the file i have fully gotten.

confused? yeah. so am i.

#75438 16/03/04 09:23 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
"what is a good way to /bread a whole file?"

bread filename.ext 0 $file(filename.ext) &var


Link Copied to Clipboard