TagLib-sharp:从 HttpPostedFile 对象读取元数据
用户将他们的 MP3 发布到我的网站,我想在将文件存储到 CDN 之前从文件中读取元数据。 TagLib-Sharp 似乎是实现此目的的库,但我看不到任何方法来打开 HttPostedFile(我不想将其保存到磁盘)并检索元数据。
有人有关于如何使用 taglib-sharp 执行此操作的示例吗?
编辑:看来 IFileAbstraction 可以解决这个问题。有人知道如何使用 IFileAbstraction 吗?
User post their MP3s to my site and I would like to read the metadata from the files before they are stored in the CDN.
TagLib-Sharp seems to be library to go for this, but I can't see any way to open a HttPostedFile, which I don't not want to save to disk, and retrieve the metadata.
Anybody have an example on how to do this with taglib-sharp?
Edit: It seems that IFileAbstraction can solve this. Anybody know how to use IFileAbstraction?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能想要执行以下操作。需要注意的是,蒸汽必须是可查找的,我不知道 HttpPostedFile.InputStream 是否是可查找的。
You would want to do something as follows. The caveat is that the steam has to be seekable an I do not know if
HttpPostedFile.InputStream
is.