I have this big doubt.
When ever i use base64Binary in an .xsd schema and use JaxB to transform it to a Java class, the type i get is byte[].
I want to create such schema that the java type being generated out of it is java.awt.Image.
Is this possible?
I tried something like this:
<element name="name" type="base64Binary" xmime:expected(entreTypes = "image/jpeg")/>
The result was byte[].
I know that out a java.awt.Image if i transform into an schema i get just
<element name="name" type="base64Binary"/>
But is there any way to get it java.awt.Image out of the .xsd?
You can change your the element declaration in your XML schema to look like the following to generate an
java.awt.Imagetype:For More Information