Article View: cn.bbs.comp.lang.java
Article #12640Re: ����jsp+Access��ͼƬ��ȡ���⣡
From: Rain
Date: Fri, 23 Jul 2004 01:15
Date: Fri, 23 Jul 2004 01:15
21 lines
2004 bytes
2004 bytes
���������image/bmp,��������out.print����idʲô�ģ��ܶ���
�� �� sona (sona) �Ĵ������ᵽ: ��
: Դ�ļ����£�
: <%@ page contentType = "image/bmp" %>
: <%@ page import="java.sql.*,java.io.*,com.sun.image.codec.bmp.*" %>
: <%
: Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
: String url ="jdbc:odbc:Driver={MicroSoft Access Driver (*.mdb)};DBQ=D:/Tomcat 5.0/webapps/ROOT/vpss/VPSs.mdb";
: Connection conn= DriverManager.getConnection(url);
: //Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
: Statement stmt=conn.createStatement();
: ResultSet rs = stmt.executeQuery("SELECT * FROM component where id='1123'");
: .................������ʡ�ԣ�
--
[1;32;40m �Ĭ� �� �� �� �� �� �ܡ� �ܡ�
�ĬĬģ����� ���� ������ ���� ���� �� ��
�ĬĬ� ���� �� �� ���� �� �� �� �� ����
�Ĭ� ����Ȧ������Ȧ������ŤŤ��ƨ��ŤŤ����Ͳ����ϣ���
[m[1;34m�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 211.161.197.161][m
Technical Details
Message-ID:
<4DKkj7$9mM@bbs.sjtu.edu.cn>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!nntp-server.pubsub.com!netnews.sdu.edu.cn!SJTUShow Full Headers
Complete Article Headers
X-Google-Thread: f6cb0,ddf82596264cf89d,start X-Google-Attributes: gidf6cb0,public X-Google-Language: Chinese,GB Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!nntp-server.pubsub.com!netnews.sdu.edu.cn!SJTU From: springrain.bbs@bbs.sjtu.edu.cn (Rain) Newsgroups: cn.bbs.comp.lang.java Subject: Re: ����jsp+Access��ͼƬ��ȡ���⣡ Date: 23 Jul 2004 01:15:07 GMT Organization: ��ˮ˼Դ Message-ID: <4DKkj7$9mM@bbs.sjtu.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: Java/M.1090545271.A Lines: 21