Check out a technical tip I wrote for the Java Mobility Developers website, where I cover a useful utility/technique for Java ME/MIDP to externalize resources, in this case images.

If you are encountering size restrictions when OTA provisioning your MIDlet, or you need your MIDlet suite to contain images that can vary over time, you can externalize resources, as shown in the tech tip Externalizing Resources in MIDP – Persisting Images in RMS.

A different technique to reduce code size, using obfuscation, was previously covered in the technical tip
Obfuscating Your MIDlet Suite.

>> Download the ImageRmsUtils.java source file.

ceo