|
|
|
binary2db
|
|||
|---|---|---|---|
|
#18+
Если у меня имеется FileStreamReader заполненный неким файлом то как мне этот ридер запихать в БД? БД мс sql. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 03.12.2004, 17:19 |
|
||
|
binary2db
|
|||
|---|---|---|---|
|
#18+
PreparedStatement.setBinaryStream(int parameterIndex, InputStream x, int length) Sets the designated parameter to the given input stream, which will have the specified number of bytes. PreparedStatement.setCharacterStream(int parameterIndex, Reader reader, int length) Sets the designated parameter to the given Reader object, which is the given number of characters long. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 03.12.2004, 17:50 |
|
||
|
binary2db
|
|||
|---|---|---|---|
|
#18+
А с простым стэйтмент никак нельзя? Я попробовал Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. получаю: java.sql.SQLException: [Microsoft][Диспетчер драйверов ODBC] Ошибка последовательности функций at sun.jdbc.odbc.JdbcOdbcResultSet.setPos(JdbcOdbcResultSet.java:5275) at sun.jdbc.odbc.JdbcOdbcResultSet.insertRow(JdbcOdbcResultSet.java:4135) at FileToDB.main(FileToDB.java:32) строка 32 это rS.insertRow(); ну и что ему не нравится? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 04.12.2004, 11:49 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=32813030&tid=2153320]: |
0ms |
get settings: |
9ms |
get forum list: |
18ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
51ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
42ms |
get tp. blocked users: |
2ms |
| others: | 203ms |
| total: | 342ms |

| 0 / 0 |
