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.
我尝试上传一个文件(图像或 txt),然后我在 div 或 textarea 中显示该文件。我正在使用 jsp 和 java servlet。我正在寻找类似的例子,但我没有找到,谁能帮助我?谢谢!
我用一个简单的ideea搜索解决了这个问题。上传后,我用 ajax 更改了背景 src,并指示一个用 blob 图像响应的 servlet。所以图像将在 div 背景中。