Вопрос

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 :)

Это было полезно?

Решение

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. :)

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top