Forums Register Login

My Data over The network

+Pie Number of slices to send: Send
hi ,i need to send a ResultSet using a socket
to the server can collect the data from the database
place it in a ResultSet and then send the ResultSet using a socket.
but the problem is that the ResultSet is not Serializable , so
1 - i created an object
2 - every record in the DB is an instance of
that object
3 - placed these object in a tmp.dat file
4 - transformed the file to an array of bytes
5 - i transmitted this array with the socket

this is working just fine but is there an easier way to
do that !!?
plus the tmp.dat wont contain more than 200,000 object .
is this the limit ?
thx
+Pie Number of slices to send: Send
Look in this forum for ResultSet to XML or ResultSet to Flat File. There are some solutions discussed there that you could easily adapt to sending strings over sockets.
It means our mission is in jeapordy! Quick, read this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 758 times.
Similar Threads
sending files back and forth thru sockets
ResultSet over a socket
rmi with big object?
IOstream
How can I transfer Image between client and server side in RMI
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 22:48:52.