Java Question Implementation Prefix mode

rhochzwei

Member
Licensed User
Longtime User
Hi there,
I'm new in this forum and trying to use the
"FileTransfer - Send and receive files with AsyncStreams" App from Erel to connect to PC via bluetooth.
Everything is fine, I can make the connection to the PC and if I use the

astream.Write(b_string.StringToBytes("This is a test","UTF8"))

routine, I can read the bytes.

But when I use the: astream.WriteStream(countingStream, totalSizeForSending)
I don't know how to interpret the bytes I receiving on the PC side.

Is there a *jar file to do the job, or can somebody explain me the structure of the reveived bytes that are initialized in prefix mode.

Best regards
Ralf
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…