Kari Nordmann wrote:- Is it possible to save\load serialized objects with a reader instead of a stream?
I don't think so. Readers are used for processing encoded text data. Running binary data through them results in information being lost.
Kari Nordmann wrote:
- Is it possible to turn a reader into a stream? I know that I can do the opposite, but that doesn't solve my problem.
For the reason cited above, I don't think so.
If you are REALLY desperate, you could try
text-encoding the binary data and using a Reader to send the resulting
String. That's how we move binary data across SNMP, which is a text-based protocol. I can't imagine it would perform well, but if it's your only option. . .