Chinmoy,

I'm not able to reproduce this with the code you posted. Can you
please send a complete Java program that shows this issue and specify
which version of Axiom (and other dependencies) you are using?

Andreas

On Wed, Mar 25, 2009 at 08:59, Chinmoy Chakraborty <[email protected]> wrote:
> 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

Reply via email to