Hello.
I have a problem with sending ByteArray to the server.
this is the code i use to get the byte[] in c#:
byte[] bytesArray = File.ReadAllBytes(<path>);
objOut = new SFSObject();
objOut.PutByteArray("anchorFile", new ByteArray(array));
sfs.Send(new ExtensionRequest("addNewRoomAnchor", objOut));
If the array is big the message wont send. So i tried other thing. The server sends me the same file bytes and when i receive them on the client i apply the code above and it works.
Any suggestions. Thank you in advance!
Regards,
G.G.
Cant send ByteArray
Re: Cant send ByteArray
How big is the array you're sending?
There's a limit on the size of the message that a client can send to the server. By default it is set to 500K (compressed).
If you need to send bigger data you can change the limit under SFS2X/config/core.xml
Hope it helps
There's a limit on the size of the message that a client can send to the server. By default it is set to 500K (compressed).
If you need to send bigger data you can change the limit under SFS2X/config/core.xml
Hope it helps
Re: Cant send ByteArray
Thank you! I changed the size and it is working now!
Who is online
Users browsing this forum: No registered users and 41 guests