来自ByteArray / Stream的TagLib-sharp文件

时间:2013-02-19 13:58:58

标签: file bytearray taglib

是否可以编辑ByteArray的标签,用TagLib代表Mp3文件#?

目前我需要这样做:

System.IO.File.WriteAllBytes(path + file + ".mp3", byt);
TagLib.File f = TagLib.File.Create(path + song + ".mp3");

是否可以避免这种情况并直接从ByteArray创建TagLib.File?

1 个答案:

答案 0 :(得分:1)

试试这个:

var soap = require('soap');
var url = 'www.webservicex.net/stockquote.asmx?WSDL'

reqURL = soap.createClient(url, function(err, client){
    client.StockQuote.StockQuoteSoap.GetQuote({symbol:'NKE'}, function(err, response){
            if(err) console.log(err);
                console.log(response);
        });
    });
});

FileBytesAbstraction是:

var file = TagLib.File.Create(new FileBytesAbstraction(<file name>, <file bytes>));