Save DataHandler to database

How can I save (the contents) of a DataHandler to database? Either binary or as a string representation.The DataHandler is coming from a javax.mail.internet.MimeBodyPart, that was generated from a SOAP request.BR
[233 byte] By [EvilHomera] at [2007-11-27 6:07:24]
# 1
look for object serialisation
cappelleha at 2007-7-12 16:24:57 > top of Java-index,Java Essentials,Java Programming...
# 2
I don't think that a DataHandler can be said to have "contents". It is a tool for transferring data, not an object for containing data. But you'll find a getTransferData() method that extracts the data that it transfers, so try calling that and working with what it returns.
DrClapa at 2007-7-12 16:24:57 > top of Java-index,Java Essentials,Java Programming...