0
我想生成由Html定義的多媒體文檔(所謂的MIME
)。
因此,我可以在a single mhtml (MIME) file here
(如:mime_example.doc)中打包相關文件(例如htm,images ...)。
但我只得到了php implementation here
:A basic MIME 1.0 class helper
(在 「基本MIME 1.0級幫手」 一節)
而the method to generate
的MHTML文件:如何用C++生成mhtml文件?
header('Content-Type: application/msword');
header('Content-disposition: filename=mydocument.doc')
$doc = New mime10class();
$doc->addFile('mydocument.htm','text/html; charset="utf-8"','Hello, world !');
$doc->addFile('subdir\anotherfile.htm','text/html; charset="utf-8"','Hi there.');
echo $doc->getFile();
但如何實現這個用C++?
(有用的鏈接:MIME Encapsulation of Aggregate Documents, such as HTML (MHTML))
http://code.google.com/p/chromium/codesearch#chromium/src/content/renderer/mhtml_generator.cc – 2013-02-26 11:00:30
您可以隨時將正確格式化的文本轉換爲字符串(流)... – PlasmaHH 2013-02-26 11:01:13
@aleguna :但我不想做一個鉻。 – Al2O3 2013-02-26 11:03:27