From: Alan Knowles Date: Mon, 23 Jul 2012 07:36:04 +0000 (+0800) Subject: Images.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=60f52a46110308a473016edf477b860ce3fb6c94 Images.php --- diff --git a/Images.php b/Images.php index eb1efd01..09d35dc4 100644 --- a/Images.php +++ b/Images.php @@ -170,7 +170,11 @@ class Pman_Core_Images extends Pman require_once 'File/Convert.php'; $cv = new File_Convert($tmp, $this->mimetype); - $cv->convert($this->as_mimetype); + $fn = $cv->convert($this->as_mimetype); + if (!empty($_REQUEST['as_data'])) { + $this->jok(base64_encode(file_get_contents($fn))); + } + $cv->serve('attachment'); exit;