You're viewing a comment by Shane and its responses.

Shane Permalink
August 11, 2007, 12:43

I spent some time trying to figure out how to use xmlhttp to pull a binary and write it out to a file. Your YouTube downloader did the trick. Nice code.Thanks.

Comment Responses

January 20, 2017, 02:50

You can also pull the file with wget, and then encode to ascii using openssl via a base64 conversion. Here is a simple bash function:

b64enc() { echo "$1" | /usr/sfw/bin/openssl enc -base64 -d; }
b643dec() { echo "$1" | /usr/sfw/bin/openssl enc -base64 -a; }


Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "antispam_1": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.