dcsimg
JDBC streaming
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ognyan_Ivanov
Posted On:   Tuesday, September 16, 2003 02:41 AM

Hi Everybody,
I want to get the database results as stream, but NOT "ResultSet.getInputStrem(1)"! I Want to get the whole resultSet, not only one column. Does anybody know some useful articles about that?

10X in advance
oggo

Re: JDBC streaming

Posted By:   supraja_madhavi  
Posted On:   Tuesday, September 16, 2003 08:30 PM

Streaming from result set can be done.This can be through SQLData.readSQL this reads a stream of data values and builds
a java object.suppose you a taking SQLInput as interface>which may 3 persistent fields String,Blob,Employye object emp

SQLInput sqlin;

this.str = sqlin.readString();
thii.blob = sqlin.readBlob();
this.emp = (Employee)sqlin.readObject();

Hope this helps yoou
About | Sitemap | Contact