No subject
Sun Oct 8 04:49:45 CDT 2006
on SuckUp
answer file "Select a file:"
if it is empty then exit to top
put url ("binfile:"&it) into s
put compress(s) into s
-- Convert to ASCII:
put base64encode(s) into s
-- Remove returns:
replace cr with "<RETURN_PLACEHOLDER>" in s
set the script of fld 1 to s
end SuckUp
on SpitOut
ask file "Name new file:"
if it is empty then exit to top
put the script of fld 1 into s
replace "<RETURN_PLACEHOLDER>" with cr in s
put base64decode(s) into s
put decompress(s) into s
set the filetype to "MSIEWAFF" -- I tested with an IE page archive
put s into url ("binfile:"&it)
end SpitOut
--
Richard Gaskin
Fourth World Media Corporation
Developer of WebMerge 2.2: Publish any database on any site
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
Tel: 323-225-3717 AIM: FourthWorldInc
More information about the use-revolution
mailing list