Mark, Adam:

I tried writing with TSimpleFileTransport and reading with
TIOStreamTransport and indeed it worked. What benefit does TFileTransport
offer compared to TSimpleFileTransport?

Bryan:

When I used the following combo, the Java code simply reads 4 bytes from the
FileInputStream (verified via FIS::available()) and then leave the fields of
the record uninitialized. There was no exception nor any other error
condition flagged.

c++: ( TBinaryProtocol ( TFileTransport ) )
java: ( TBinaryProtocol ( TIOStreamTransport ) )

c++: ( TBinaryProtocol ( TFileTransport ) )
java: ( TBinaryProtocol ( TFramedTransport ( TIOStreamTransport ) ) )

Reply via email to