Natesan Prabhakaran wrote:
So, Please tell me, is there any possibility to write on PDF by using RandaomAccessFile
Yes, you can read and write any kind of files using RandomAccessFile. However, if you want to create a PDF file from a
string or a text file, you need a
Java PDF library. Search in Google using "Java PDF Library" as the keywords.
Regarding using UDP instead of TCP, is it your decision or someone else's (your boss/software architect/team leader)? If it is your own decision,
you should re-consider it. Using UDP, not only that you may loss some of the packets, the receiver may receive the packet in a wrong order. And you may receive a single packet twice. Your program must be able to handle these kinds of situation.
There are a lot of articles in the internet about the pros and cons of TCP and UDP. You should read them.