Frage

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

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top