Convert the object to a byte stream of the specified MIME type
and write it to the output stream.
Parameters:
-
obj - The object to be converted.
-
mimeType - The requested MIME type of the resulting byte stream.
-
os - The output stream into which to write the converted
byte stream.
Throws:
-
IOException - errors writing to the stream