Piping remote file in ExpressJS

Well I’d still like to know how to make the above work but I solved my issue in one line with the request module!

var url="http://proxy.boxresizer.com/convert?resize=50x50&source=" + filename
require('request').get(url).pipe(res);  // res being Express response

Leave a Comment