Keith Devens .com |
Friday, November 21, 2008 | ![]() |
| "I am a leaf on the wind. Watch how I soar." – 'Wash' (Serenity, 2005) | ||
|
| ← No cents for you | A New Kind of Science → |

M. Bean (http://www.yaysoft.com/) wrote:
Keith (http://www.keithdevens.com/) wrote:
I was actually thinking of that. I expected it to be trivial in REBOL, so that's why I tried it first. Literally, it should have been:
save %g1.png debase read %g1.png.base64
but that turned out not to work. So I went searching for a utility and immediately found the one I linked to. If I hadn't found anything to do it, I possibly would have gone the PHP route, which would be the next easiest (and probably would have actually worked!)
Alekk wrote:
REBOL:
You should use write/binary, as "save" writes data "for REBOL", and "save/png" converts (and saves) internal rebol image datatype to png.
There should be:
write/binary %g1.png debase read %g1.png.base64
Feel free to post a comment below. Please see my comment policy.
Formatting Rules (No HTML):
Generated in about 0.275s.
(Used 8 db queries)

You could have also likely used this PHP function:
base64_decode()
http://www.php.net/manual/en/function.base64-decode.php