🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #12640

Re: ����jsp+Access��ͼƬ��ȡ���⣡

#12640
From: Rain
Date: Fri, 23 Jul 2004 01:15
21 lines
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'");
: .................������ʡ�ԣ�

--
  �Ĭ�  ��        ��      ��       �� ��     �ܡ�    �ܡ�
�ĬĬģ�����   ����       ������   ����         ����      �� ��
�ĬĬ� ����    �� ��      ����    �� ��        �� ��       ����
�Ĭ� ����Ȧ������Ȧ������ŤŤ��ƨ��ŤŤ����Ͳ����ϣ���
�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 211.161.197.161]
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!SJTU

Show 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