Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
传递 byte[] 时支持哪些图像文件类型?
事实上,只要匹配image/*. 请参阅此处获取列表。您只依赖于使用的网络浏览器/客户端是否支持图像类型。
image/*
顺便说一句,可以肯定的是:你不能让 value 指向 a byte[]。它必须指向返回相关byte[]问题的 URL。servlet 非常适合这种情况。这是一个基本的例子。
byte[]