|
Hi, One of the return classes of my service contains a large
byte[]. I would like to have the byte[] sent as an attachment. Following some
examples I have implemented this by hand and sent the byte[] as an attachment
and just set the byte[] to null before the response is sent. The client then manually
grabs the attachment. Preferably I would like this done automatically. I think I
can achieve this is by: 1) Have my
service return a new wrapper class that converts the byte[] property to a
DataHandler 2) Convert the
classes <beanMapping> to a compete <typeMapping> defining the
DataHandler property Unfortunately I am having great difficulty finding any
resources outlining this type of <typeMapping> and use of a DataHandler. Is this is even possible? Any help is greatly appreciated
|
<<image001.gif>>
