In my application I develop web service that get attached file. The file is mapped to DataHandler object via JaxB, and I have access to the file via DataHandler.getInputStream()
My problem is this: When the file attribute exist in the web service request, but no file is attached, I still get the DataHandler object, and its getInputStream().available() = 11 bytes (a header I guess...??).
So I can I know that the inputStream is empty?
Thanks, Alon