strict warning: Only variables should be assigned by reference in /home/itechpros/servoyguy.com/sites/all/modules/links/links.inc on line 1434.

Writing the contents of the media library out to a file

Source: Patrick Ruhsert, Dr. Maison & Partner GmbH

 

var vImage = plugins.http.getMediaData('media:///test.png'); 
plugins.file.writeFile('D:\\test.png', vImage);