| To: | Creighton Kirkendall <ckirkendall@xxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [cinjug-users] Returning 4K+ from a Java Stored Procedure |
| From: | Eric Bardes <ericbardes@xxxxxxxxx> |
| Date: | Fri, 23 Sep 2005 15:02:42 -0400 |
| Cc: | users@xxxxxxxxxx |
| Delivered-to: | mailing list users@cinjug.org |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=s1e7iF2WMKfkp0MIKBDzfKvJa742spokly5gOH4uujf75PzB0qQjir5SMgHtSbk9fUl6VZYsudqweT8EhsaEsIe/EduXwvvYlbbdmgxwMu36Dw6AbazhNqb+IVsQHrprMNhhH9w3HIpvnZCwwx+vgz43IjJe4MjkezuWX02Dfo0= |
| In-reply-to: | <1127500829.2681.136.camel@localhost.localdomain> |
| Mailing-list: | contact users-help@cinjug.org; run by ezmlm |
| References: | <20050923161304.56517.qmail@web30507.mail.mud.yahoo.com> <1127500829.2681.136.camel@localhost.localdomain> |
| Reply-to: | Eric Bardes <ericbardes@xxxxxxxxx> |
It's been over 2 years since I've used Oracle, but I remember a
similar problem getting binary photo data from a blob.
At the heart of our solution was to use ResultSet.getBinaryStream("columnindex")
There is a ResultSet.getAsciiScream() too.
The idiom went:
int bytes;
ResultSet rs = ...
while (rs.next())
{
InputStream is = rs.getBinaryStream("photo");
while ((bytes = is.read( ... )) > 0)
{
...
}
}
--
Cheers,
Eric Bardes
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [cinjug-users] Returning 4K+ from a Java Stored Procedure, Creighton Kirkendall |
|---|---|
| Next by Date: | Re: [cinjug-users] Returning 4K+ from a Java Stored Procedure, santosh kaushik |
| Previous by Thread: | Re: [cinjug-users] Returning 4K+ from a Java Stored Procedure, Creighton Kirkendall |
| Next by Thread: | Re: [cinjug-users] Returning 4K+ from a Java Stored Procedure, santosh kaushik |
| Indexes: | [Date] [Thread] [Top] [All Lists] |