Forums Register Login

Problem with the object serialization and stream

+Pie Number of slices to send: Send
Hello,
Actually i am working on the program which will serialize the vector object(using ObjectOutputStream's Class writeObject()) in the client program and in the server side i am deserializing that object by retreiving the inputstream from the request object like, request.getInputStream() but i am not getting the input Stream in the server side and if i am printing number of bytes present in the input stream in the server it is giving 0.
THis is my code


client side code is :::

and Server side code is ::::



JCE: please UseCodeTags
+Pie Number of slices to send: Send
You have already been warned several times that your displayed name does not comply with the JavaRanch Naming Policy. You can change your displayed name by clicking on the "My Profile" link above. If you do not do so, your account will be closed.
straws are for suckers. tiny ads are for attractive people.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1051 times.
Similar Threads
HttpsUrlConnection - Facing problem while reading the input stream and establishing the cookie
Send object from applet to servlet
Communication between Servlet and Applet
Serialization & Predefined Primitive Classes
PROBLEMS WITH APPLET -> SERVLET communication
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 06:10:11.