私はpeer.jsを使用してあるユーザーから別のユーザーにWord文書を送信しようとしていましたが、コンテンツを取得していないWord文書のどこでもテキストファイル(.txt、text/plain)を操作しても問題ありません。
これが私が今までやったことです
box.on('drop', function (e) {
e.originalEvent.preventDefault();
var file = e.originalEvent.dataTransfer.files[0];
eachActiveConnection(function (c, $c) {
if (c.label === 'file') {
if (file.type == "text/plain") {
alert("type : " + file.type + " - sendable");
c.send(file);
} else {
//here i need to convert word document into text/plain or atleast to string and send the file by using // c.send(file)
}