I have not tried with that size of document, but using a standard
InputReader seems to work fine. Just setup a FileReader, buffer
into a StringBuffer then when finished use the stringBuffer.toString()
in the preparedStatement.
danap.
liuyuanyuan wrote:
> Hi,
> Now I need to insert a huge string from a huge file (e.g. a 1 GB text document) to a TEXT type field.
> But I don't know any other way to insert string except setString() for preparedStatement.
> Anyone know about this, please write to me. Thanks in advance!
>
> Best Wish!
>
> Yours,
> Liu Yuanyuan
> August 14,2013
> --------------
> 刘媛媛
> 山东瀚高基础软件股份有限公司
> 研发中心
> QQ:73129616