Hello,
I want upload/download a pdf files. Now i have seen that on several examples a javax.activation.DataHandler is used. Why?
I'm using jax-ws. Is it not simpler just to use a byte[] to transfer the data?
Raw bytes can't be used in XML (which is a text protocol). The benefit of DataHandler is that it uses a cross-platform compatible representation of the data, which is important for web services.
Hello,
Thanks for the answer. But i made an example where is use a byte[] to transfer the data and it works. How is the compatibility of this DataHandler to other programm language like .net, vb,... ?
Don't get me started about those stupid light bulbs.