Question

I am doing a project on UDP client server file transfer in which a client successfully reads a file and transfers it to the server. But this works only as long as the file is a .txt Any suggestions on how to make it work for .pdf files also. Thanks in advance :)

Was it helpful?

Solution

I already implemented tcp and it works fine. I figured out that what I was converting the byte array to string and then writing to file and thus some error was occuring I fixed it by directly writing byte array to file rather than first converting it to string. Thanks for the help. :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top