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:Code:public class BulletinImageImpl implements BulletinImage { private byte[] image; public byte[] getImage(String bulletinNumber, String page) { return image; } 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.Code:<bean id="bulletinImageBusiness" class="BulletinImageImpl"> <property name="image" value="file:i/inyourfacemace.jpg"/> </bean>
Anybody know how I can make it pull the bytes out of the file?


Reply With Quote
