It's better to encode binary data according to base64. Every SyncML product doesn't support to transfer binary data.
Base64 encoder/decoder is included in the toolkit.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-07-28
I have tried this but I have problem with receiving data. I use pieces of base64 encoded data with size several kilobytes in <Data>My base64 encoded data</Data>, but in case of receiving function smlLockReadBuffer() returns usedSize only about 980 bytes, so parser can not to find end tag </Data>. and buildPCData() ends with exception. How can I change this behaviour and enlarge parsed data size ?
Peter
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-07-29
Sorry, I has not xptReceiveData() in loop - this was reason - not all data was accepted.
Regards !
Peter
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does support built-in parser in Toolkit transfering of binary data in XML binary entity ?
Peter
It's better to encode binary data according to base64. Every SyncML product doesn't support to transfer binary data.
Base64 encoder/decoder is included in the toolkit.
I have tried this but I have problem with receiving data. I use pieces of base64 encoded data with size several kilobytes in <Data>My base64 encoded data</Data>, but in case of receiving function smlLockReadBuffer() returns usedSize only about 980 bytes, so parser can not to find end tag </Data>. and buildPCData() ends with exception. How can I change this behaviour and enlarge parsed data size ?
Peter
Sorry, I has not xptReceiveData() in loop - this was reason - not all data was accepted.
Regards !
Peter