jsp读取bfile解决方案

jsp读取bfile
求指导:

我想在jsp里读取oracle数据库里存储的图片(bfile)
代码如下:
Statement stmt=conn.createStatement();

ResultSet rset=stmt.executeQuery("select * from bfiletable");
while(rset.next()){
BFILE bfile=((ResultSet)rset).getBFILE("pic");
//打开bfile
bfile.openFile();
int length=(int)bfile.length();
InputStream instream=bfile.getBinaryStream();
byte[] buffer=new byte[length];
//从instream中读到buffer中
instream.read(buffer);
//把buffer中的数据显示在button上
Button =new JButton(new ImageIcon(buffer));
instream.close();
bfile.close();


但我的BFILE和Button下面有红色的波浪线 好像是jsp没识别 请问怎样改呢???


急急急 在线等。。。。

------解决方案--------------------
不知道,帮顶
------解决方案--------------------
java 没用过bfile 不知道在哪个包下,你去把包引入jsp,

然后那个JButton 是swing 的 jsp 用<input type="button" name="" value=""/>