从字节数组中获取文件名 [英] Get Filename from Byte Array

查看:44
本文介绍了从字节数组中获取文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以从字节数组中提取 mimetype,例如,通过使用 Apache Tika.

We can extract the mimetype from byte array, e.g., by using Apache Tika.

是否可以从字节数组中获取文件名.

Is it possible to get Filename from Byte Array.

推荐答案

没有.您可以从内容数据本身猜测 mimetype,但文件名不在其中.

No. You can take a guess at a mimetype from the content data itself, but the filename is not in there.

这篇关于从字节数组中获取文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆