当前位置: 技术问答>java相关
如何在JSP里得到CLOB类型的数据
来源: 互联网 发布时间:2015-04-04
本文导语: 如何在JSP里得到CLOB类型的数据 我试过用getParameter("content");来获得一个 输入值,结果失败,请问该用什么函数呢? | 6. LOBS * To read a piece of a LOB. BLOB blob = ((OracleResultSet) r...
如何在JSP里得到CLOB类型的数据
我试过用getParameter("content");来获得一个
输入值,结果失败,请问该用什么函数呢?
我试过用getParameter("content");来获得一个
输入值,结果失败,请问该用什么函数呢?
|
6. LOBS
* To read a piece of a LOB.
BLOB blob = ((OracleResultSet) rset).getBLOB (1);
byte[] bytes = blob.getBytes (, );
CLOB clob = ((OracleResultSet) rset).getCLOB (2);
String str = clob.getSubString (, );
BFILE bfile = ((OracleResultSet) rset).getBFILE (3);
byte[] bytes = bfile.getBytes (, );
* To read the LOB content as a stream.
BLOB blob = ((OracleResultSet) rset).getBLOB (1);
InputStream input_stream = blob.getBinaryStream ();
input_stream.read (...);
CLOB Clob = ((OracleResultSet) rset).getCLOB (1);
Reader char_stream = Clob.getCharacterStream ();
char_stream.read (...);
CLOB Clob = ((OracleResultSet) rset).getCLOB (1);
InputStream input_stream = Clob.getAsciiStream ();
input_stream.read (...);
BFILE bfile = ((OracleResultSet) rset).getBFILE (1);
InputStream input_stream = bfile.getBinaryStream ();
input_stream.read (...);
* To write a specified amount of data into a LOB.
BLOB blob = ((OracleResultSet) rset).getBLOB (1);
byte[] data = ...
int amount_written = blob.putBytes (, data);
CLOB clob = ((OracleResultSet) rset).getCLOB (1);
String data = ...
int amount_written = clob.putString (, data);
* To replace the LOB content from a stream.
BLOB blob = ((OracleResultSet) rset).getBLOB (1);
OutputStream output_stream = blob.getBinaryOutputStream ();
output_stream.write (...);
CLOB clob = ((OracleResultSet) rset).getCLOB (1);
Writer char_stream = Clob.getCharacterOutputStream ();
char_stream.write (...);
CLOB Clob = ((OracleResultSet) rset).getCLOB (1);
OutputStream output_stream = Clob.getAsciiOutputStream ();
output_stream.write (...);
* To get LOB length.
long length = blob.length ();
long length = clob.length ();
long length = bfile.length ();
* To read a piece of a LOB.
BLOB blob = ((OracleResultSet) rset).getBLOB (1);
byte[] bytes = blob.getBytes (, );
CLOB clob = ((OracleResultSet) rset).getCLOB (2);
String str = clob.getSubString (, );
BFILE bfile = ((OracleResultSet) rset).getBFILE (3);
byte[] bytes = bfile.getBytes (, );
* To read the LOB content as a stream.
BLOB blob = ((OracleResultSet) rset).getBLOB (1);
InputStream input_stream = blob.getBinaryStream ();
input_stream.read (...);
CLOB Clob = ((OracleResultSet) rset).getCLOB (1);
Reader char_stream = Clob.getCharacterStream ();
char_stream.read (...);
CLOB Clob = ((OracleResultSet) rset).getCLOB (1);
InputStream input_stream = Clob.getAsciiStream ();
input_stream.read (...);
BFILE bfile = ((OracleResultSet) rset).getBFILE (1);
InputStream input_stream = bfile.getBinaryStream ();
input_stream.read (...);
* To write a specified amount of data into a LOB.
BLOB blob = ((OracleResultSet) rset).getBLOB (1);
byte[] data = ...
int amount_written = blob.putBytes (, data);
CLOB clob = ((OracleResultSet) rset).getCLOB (1);
String data = ...
int amount_written = clob.putString (, data);
* To replace the LOB content from a stream.
BLOB blob = ((OracleResultSet) rset).getBLOB (1);
OutputStream output_stream = blob.getBinaryOutputStream ();
output_stream.write (...);
CLOB clob = ((OracleResultSet) rset).getCLOB (1);
Writer char_stream = Clob.getCharacterOutputStream ();
char_stream.write (...);
CLOB Clob = ((OracleResultSet) rset).getCLOB (1);
OutputStream output_stream = Clob.getAsciiOutputStream ();
output_stream.write (...);
* To get LOB length.
long length = blob.length ();
long length = clob.length ();
long length = bfile.length ();
|
java里有clob类型么?
|
如果content是textarea的name就应该没有问题的
|
http://www.csdn.net/Expert/TopicView.asp?id=83096&datebasetype=200101