Dear Sir/Madam, I am using postgresql our java application. In that when I want to insert largeobject like this LargeObjectManager lo = ((org.postgresql.Connection)conn).getLargeObjectAPI(); InputStream is = rs.getBinaryStream(); but it gives me compilation error: cannot resolve symbol symbol : method getBinaryInputStream () Regards Swati
At 11:26 PM 10/2/2001, Swati wrote:
>InputStream is = rs.getBinaryStream();
>
>but it gives me compilation error:
>
>cannot resolve symbol
>symbol : method getBinaryInputStream ()
You need to specify the column index or name to access as a BinaryStream:
InputStream is = rs.getBinaryStream(1);
or
InputStream is = rs.getBinaryStream("data");
The methods are declared in java.sql.ResultSet and are not specific to
Postgres.
Peace,
Dave
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера