Hi,
I have an application and need help and suggestions.
- First my application take any file name
(like image file or audio file or video file or any other extension files)
and Encode the file using Base64Encoder.
- Secondly, the contains of Encoded file will be stored in
String and then it is passed to the xml.
- Thirdly It is starting a client (Client socket) and connecting to the server which is running on remote Unix machine.
- Fourth - It send's the XML File to the Server Socket.
- At ServerSocket,
First - It recieves the xml files and save it in TEMP folder.
Secondly - Another parsing method is called on xml file and it parse the XML file using DOM Parser.
Thirdly, New Encoded file is created in TEMP folder.
Fourth - Decoder is called and it will decode the file and retain back the original file at Server Location.
Above mention activities are working perfectly fine but the problem is :
I'm not able to send file which is more then 275KB.
where I want to send file upto the size in MB's. like 1 MB or 2MB etc.??
So, I wanted to try with NIO SocketChannel and ServerSocketChannel?
so does this help me send the file of Huge data???
If so, can any one could send me example application for communicating using JAVA.NIO (client and server).
Because I tried and I'm not able to understand this concept specially, Selectors, Channels, Blocking, NON Blocking etc.
so your guide in this matter will be highly appreciated as I'm very new in JAVA.NIO's
Please help.
Thanks
Mohammed Zubedi
mohammed.zubedi@xius-bcgi.com