Boa Tarde Pessoal.
Alguem aqui jah trabalhou com retorno de campos BFILE e
BLOB?
Eu tenho um exemplo que peguei da Oracle com o seguinte
codigo.
1 import java.sql.*;
2 import java.io.*;
3 import java.util.*;
4 import oracle.jdbc.driver.*;
5
6 public class FileExample
7 {
8 public static void ma
Oi,
Acho que nao entendi o problema... é no retorno ou no cast?
OracleResultSet.getBfile() retorna um oracle.sql.BFILE
> O erro ocorre na linha 20 quando ele faz o cast para o
> OracleResultSet.
> Fui ver a classe OracleResultSet e percebi que alguns
> metodos, inclusive o getBfile(int
Cara,
Não sei o Bfile, mas eu trato Blob da seguinte maneira:
protected byte[] desMessageText = null; // cria array de bytes para receber o
blob
Blob blob = rs.getBlob("nome_do_campo");
if (blob != null)
{
desMessageText =blob.getBytes(1, (int) blob.length());
}
Deste mo
decidi
o que seria melhor.
obrigado pela atencao
- Original Message -
From: "Márcio Di Pietro" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 24, 2001 9:17 PM
Subject: Re: [java-list] Bfile e Blob no Oracle
> Cara,
>
> Não sei o Bfile
blioteca de imagens mas ainda nao decidi
> o que seria melhor.
>
> obrigado pela atencao
>
> - Original Message -
> From: "Márcio Di Pietro" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, July 24, 2001 9:17 PM
> Subject: Re: [jav
agem ou armazena-las no
> > banco de dados?
> >
> > Estou na fase de definicao de uma biblioteca de
imagens mas ainda nao decidi
> > o que seria melhor.
> >
> > obrigado pela atencao
> >
> > - Original Message -
> > From: "Márcio
Your message was not delivered to all recipients.
Subject: [java-list] Bfile e Blob no Oracle
Sent: 7/24/01 4:25:00 PM
The following email address(es) were unknown:
PODINAP MARCOS BORGES at PODINAP
Your message was not delivered to all recipients.
Subject: RE: [java-list] Bfile e Blob no Oracle
Sent: 7/25/01 4:16:00 PM
The following email address(es) were unknown:
PODINAP MARCOS BORGES at PODINAP
Cara,
Voc? pode gravar o que vc quiser usando um Blob, inclusive as
Your message was not delivered to all recipients.
Subject: RE: [java-list] Bfile e Blob no Oracle
Sent: 7/25/01 10:13:00 AM
The following email address(es) were unknown:
PODINAP MARCOS BORGES at PODINAP
Saudacoes pessoas,
Este exemplo de utilizacao do blob tambem vale para
Your message was not delivered to all recipients.
Subject: RE: [java-list] Bfile e Blob no Oracle
Sent: 7/24/01 9:17:00 PM
The following email address(es) were unknown:
PODINAP MARCOS BORGES at PODINAP
Cara,
Nao sei o Bfile, mas eu trato Blob da seguinte maneira
Your message was not delivered to all recipients.
Subject: RE: [java-list] Bfile e Blob no Oracle
Sent: 7/24/01 5:57:00 PM
The following email address(es) were unknown:
PODINAP MARCOS BORGES at PODINAP
11 matches
Mail list logo