Re: binary data

Поиск
Список
Период
Сортировка
От Uwe Kubosch
Тема Re: binary data
Дата
Msg-id CHECLDNPGHELOIINBBLEMEEHEIAA.donv@crusaders.no
обсуждение исходный текст
Ответ на Re: binary data  (Anders Hermansen <anders@yoyo.no>)
Ответы Re: binary data
Re: binary data
Список pgsql-jdbc
Hi!

> Show us the code that saves the InputStream to a file.

This is a web-application that streams the InpuStream back to the browser.
The code that does this is like this:

byte[] buffer;
int bytesRead;

buffer = new byte[is.available()];

while (is.available() > 0) {
  bytesRead = is.read(buffer);
  response.getOutputStream().write(buffer, 0, bytesRead);
}

response.getOutputStream().flush();
is.close();


Uwe


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

Предыдущее
От: Anders Hermansen
Дата:
Сообщение: Re: binary data
Следующее
От: Anders Hermansen
Дата:
Сообщение: Re: binary data