If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > Receive java.io.InputStream frm PL/SQL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-21-03, 08:15
ajb ajb is offline
Registered User
 
Join Date: Aug 2003
Location: Dale i Sunnfjord
Posts: 8
Receive java.io.InputStream frm PL/SQL

I am wondering how to recieve a stream of data from pl/sql to a java-class stored in the database.

Right now my plan is to pass a LOB to java and treat it as an InputStream, but I am not sure if it is possible.

Is it anyone here who knows?

-aj
Reply With Quote
  #2 (permalink)  
Old 08-22-03, 06:33
ajb ajb is offline
Registered User
 
Join Date: Aug 2003
Location: Dale i Sunnfjord
Posts: 8
Re: Receive java.io.InputStream frm PL/SQL

I found out myself!!!!!

If anyone has the same problem:

First create a temporary CLOB in PL/SQL and fill it with the data you need to stream.

This CLOB can be passed directly to the java-class via a java-wrapper. Use the datatype java.sql.Clob

In your java-method you receive an InputStream from the CLOB by calling the method getAsciiStream() on the Clob-object
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On