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.
我需要检索存储在我的 oracle 11g R2 数据库中的图像。我正在尝试使用 Jquery 和 servlet 检索图像,并将其放入 css 部门。但我是这方面的新手。我知道使用 json 对象我们可以做这些事情。请任何人告诉我该怎么做
发出一个返回所有图像名称列表的请求(以便您知道要检索什么)
制作一个提供图像的 servlet - 获取名称作为 GET 参数,在数据库中查找它(例如通过 JDBC)并将结果流式传输回response.getOutputStream(),并设置正确的内容类型
response.getOutputStream()