Indeed. Since SwA uses MIME, the content type is sent over the wire in
a well defined way and Axis2/Axiom should be able to preserve it. Not
sure though for the (file) name. MTOM also uses MIME and a content
type is sent over the wire, but since MTOM is defined as an
alternative representation of an XML message containing elements of
type base64binary, one should not rely on this.

Andreas

On Thu, Jun 25, 2009 at 11:05, Chinmoy Chakraborty<cch...@gmail.com> wrote:
> Andreas,
>
> I noticed the content-type info is preserved for SwA but MTOM does not
> preserve the info you mentioned. I guess the file can be sent as an
> attachment? Whats your opinion on this?
>
> Chinmoy
>
>
> On Thu, Jun 25, 2009 at 2:28 PM, Chinmoy Chakraborty <cch...@gmail.com>
> wrote:
>>
>> Could you share your code-snippet?
>>
>> Chinmoy
>>
>>
>> On Thu, Jun 25, 2009 at 12:45 PM, Moritz Maedler <m...@moritz-maedler.de>
>> wrote:
>>>
>>> Good morning,
>>>
>>> the Problem is, that i need to get the content-type from the
>>> DataHandler-Object, as
>>> the method should be an image-upload that should support various
>>> image-types
>>> like gif, png, jpeg
>>> and so on.
>>> The next idea I have, is rerender the image on the server to jpeg using
>>> ImageMagicks "convert" and
>>> delete the source image afterwards. But I think it must be possible to
>>> get
>>> the content-type or at least
>>> the original filename from the DataHandler-Object.
>>>
>>> Maybe you can tell me, how to get the ByteArrayDataSource out of the
>>> DataHander-Object?
>>>
>>> Thanks a lot!
>>>
>>>
>>
>
>

Reply via email to