hi,看看这个鬼子给的方案是不是可以!
http://www.daniweb.com/forums/thread114311.html
另一代码:
1. <%
2. try {
3. byte[]data =retrieve the image binary data from the database
4.
response.setContentType("image/gif"); //This line is very important
5. ServletOutputStream so = response.getOutputStream();
6. sout.write(data);
7. so.flush();
8. so.close();
9. } catch (Exception e) {
10. e.printStackTrace();
11. }
12.
13. %>
[
本帖最后由 usrobin 于 2008-9-11 20:38 编辑 ]