I'm trying to filgure out how to take a simple bean that contains a byte property and load it using an image file.
Here's my bean:
and my xml file:
public class BulletinImageImpl implements BulletinImage
private byte image;
public byte getImage(String bulletinNumber, String page)
public void setImage(byte image)
this.image = image;
My image is in the "i" folder, not in WEB-INF. It doesn't load the file, just plugs in the bytes from the string.
<bean id="bulletinImageBusiness" class="BulletinImageImpl">
<property name="image" value="file:i/inyourfacemace.jpg"/>
Anybody know how I can make it pull the bytes out of the file?