[add-art dev] Image download code

Ethan Ham ethan at ethanham.com
Mon Jun 2 12:31:35 PDT 2008


Hi all,

I decided to take a stab at coding image download (via xml).  Here's what I
put together.  I was a little hesitant about sticking it into the
development code without a nod from someone... If you want I could go ahead
and do that, or someone else who is more familiar with the code base is
welcome to insert what I've put together.

The .js file has a variable for setting the name of the extension and for
identifying the location of the xml file.

The xml file has artist & title info (which I'm not doing anything with),
the filename that the image should be saved under, and the image data
(converted to Base64).

I don't have any logic here for establishing when new images should be
downloaded... This code simply does the download whenever it is run.

Best,
Ethan

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: imagedownload.js
URL: <http://lists.add-art.org/pipermail/supperclub-add-art.org/attachments/20080602/261c1c07/attachment-0001.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: addart.xml
Type: application/msword
Size: 171852 bytes
Desc: not available
URL: <http://lists.add-art.org/pipermail/supperclub-add-art.org/attachments/20080602/261c1c07/attachment-0001.wiz>


More information about the Supperclub mailing list