Hi All,
I noticed DataHandler.getName() always returns 'MyByteArrayDataSource' if
the data source is ByteArrayDataSource from which the DataHandler has been
created. Please look at the code below:
FileItem file = (FileItem) value;
ByteArrayDataSource bads = new ByteArrayDataSource(file.getInputStream(),
"application/msword");
bads.setName("abc.doc");
DataHandler dh = new DataHandler(bads);
Now if I do, dh.getName(), it always returns 'MyByteArrayDataSource". I
guess this is a bug. Whats your opinion?
Chinmoy