Re: How to insert huge string from file to text field via JDBC ?

Поиск
Список
Период
Сортировка
От dmp
Тема Re: How to insert huge string from file to text field via JDBC ?
Дата
Msg-id 520B8C5B.5000501@ttc-cmc.net
обсуждение исходный текст
Ответ на How to insert huge string from file to text field via JDBC ?  (liuyuanyuan <liuyuanyuan@highgo.com.cn>)
Ответы Re: How to insert huge string from file to text field via JDBC ?
Список pgsql-jdbc
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



В списке pgsql-jdbc по дате отправления:

Предыдущее
От: liuyuanyuan
Дата:
Сообщение: How to insert huge string from file to text field via JDBC ?
Следующее
От: David Johnston
Дата:
Сообщение: Re: How to insert huge string from file to text field via JDBC ?