- Home /
Send a file using NetworkServer class.
I’m trying to send a .txt and .xml file, via network, but I couldn’t achieve. I’m working with NetworkServer class and NetworkServer.SendBytesToReady() method to send it; however, I’m also working with NetworkClient class and NetworkClient.RegisterHandlerSafe() method to register the method which receives the message with byte[]. It connects and send a success message, yet when I receive the byte[] at client’s side it comes as a null value. That is the first time that I post here, and I couldn’t find a how to post guide, so if I have done something wrong, I ask for apologize. The information above was the one I found relevant, but if you have some more questions, ask.
Your answer
Follow this Question
Related Questions
Server unable to spawn prefab 0 Answers
Qos type ReliableFragmented channel, won't fragment our stream 2 Answers
Issue building Android build with com.unity.transport in it 0 Answers
Client side prediction, rigidbody.velocity, photon network 0 Answers
How to Make An Online Multiplayer Game With My Own Server? 2 Answers