• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Uplod Blob with stream

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I want to store big data in a blob (Oracle 10g)
I can use only Store Procedures...
My problem is :

I don't know the blob size and CallableStatement provide only a method setBinaryStream (column, inputStream, size).
The method setBinaryStream(column, inputStream) is not available .

waht is the value for "size" ?

the value "-1" don't work....

Tank you.

 
Ranch Hand
Posts: 430
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
e ae blz

I tested here and this method exist.


http://www.giraffeed.com/show-image.php?id=bf48b0b680801f0bfeac3ce24d7e9787

What version of JDK you are using?

 
roberto zzzz
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ver 1.4.2 and this method do not exist

tank you...
 
Leandro Coutinho
Ranch Hand
Posts: 430
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

roberto zzzz wrote:ver 1.4.2 and this method do not exist

tank you...



I'm using JDK 6 and this method exist.

http://java.sun.com/javase/downloads/index.jsp
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

roberto zzzz wrote:
waht is the value for "size" ?


Do a guess? What does the parameter name "size" itself say when you keep a binary stream in mind?
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you read the Javadoc at any way? http://java.sun.com/javase/6/docs/api/java/sql/CallableStatement.html#setBinaryStream(java.lang.String,%20java.io.InputStream,%20int)
 
Leandro Coutinho
Ranch Hand
Posts: 430
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
congratulations Bauke Scholtz!
2000 messages!!!

don't reply my post

=D
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Heh, it isn't that much. Congratulate if I'm over 50K or so.
reply
    Bookmark Topic Watch Topic
  • New Topic