Re: binary data

From: Anders Hermansen <anders(at)yoyo(dot)no>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: binary data
Date: 2003-03-02 14:37:30
Message-ID: 20030302143730.GA19602@online.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

* Uwe Kubosch (donv(at)crusaders(dot)no) wrote:
> 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();

I can't see anything in your code that is not binary safe, or I'm
missing something obvious just like you. Maybe the gurus know.

Anders

--
Anders Hermansen
YoYo Mobile as

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2003-03-02 14:46:06 Re: postgreSQL dirver compatibility to Oracle DB
Previous Message Uwe Kubosch 2003-03-02 13:44:26 Re: binary data