PHP แทรก รูป ลงใน Words ด้วย Template XML
วิธี ที่ผมใช้คือ ผมจะแปลงรูป ให้เป็น binary ก่อนแล้วเอาไปแปะใน Tamplate ครับ
ตามคำสั่งนี้ครับ
$content=file_get_contents(“test.gif”);
$encode=base64_encode($content);
echo “Encoded Data:”.$encode;
ได้ Binary มาก็นำไป replace ลงใน ตำแหน่งที่เรา mark จุดไว้ครับ