DataHandler Usage
3 posts in topic
Flat View  Flat View

Posted By:   Java_THuG
Posted On:   Wednesday, February 23, 2005 05:02 AM

Can I use the javax.activation.DataHandler to send files through newtwork socket stream programming ?????

If this can be done what other alternatives my replace this in a way to provide sending/recieving any file type!

Thanks in advance

Re: DataHandler Usage

Posted By:   lokesh_pandey  
Posted On:   Friday, April 1, 2005 09:44 PM

hi i am doing a project on networking in java language so need immadiete help on java networking as how to capture a packet on a system if u have an answer please send to me i shall be very thankful to u.
lokesh pandey

Re: DataHandler Usage

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, February 26, 2005 07:53 AM

I am not sure (?) but I thought the DataContentHandlers are for parsing, encoding/decoding different MIME content types, right? (like RTF vs HTML vs plaintext, etc.).

Oh, maybe you can Base64 encode your files, so they are protected in transit, if they are binary executables etc.
but that is only important if your network protocol is a line-oriented one like SMTP (dealing with data in "lines" where it breaks it up into chunks and might damage binary content).

regarding java support for advanced socket options

Posted By:   Anonymous  
Posted On:   Friday, February 25, 2005 10:37 PM

i want to trasmit some data using connection oriented socket in java
i want to use ip_tos field of ip header
i am able to set the value of precedence field for datagram sockets
using settrafficclass of java
but if i use same thing for tcp sockets it is disabling
i want to give priority to my connection oriented socket using precedence field
i want iptos_,lowdelay for my connection oriented socket
if it is possible
pls send me the code
About | Sitemap | Contact