public
Description: Alpha repository for DUI.Stream. When it stabilizes, it will be merged back into DUI.
Homepage:
Clone URL: git://github.com/digg/stream.git
stream / testAdvancedImageData.php
100644 27 lines (21 sloc) 0.578 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
 
header('MIME-Version: 1.0');
header('Content-Type: multipart/mixed; boundary="|||"');
 
 
$images = array(
        "img/advanced/dfltr.png",
        "img/advanced/dtrinh.png",
        "img/advanced/jstump.png",
        "img/advanced/lenn0x.png",
        "img/advanced/op12.png",
        "img/advanced/phatduckk.png",
        "img/advanced/sfrench.png",
        "img/advanced/thejakemarsh.png",
    );
    
foreach ($images as $img) {
   $imgFile = file_get_contents($img);
       echo "--|||
Content-Type: image/png
" . base64_encode($imgFile);
}
 
echo '--|||--';
 
?>