My J2ME app needs to be able to download from my web site different sets of icons optimised for the screen size of the phone on which the app has been installed - e.g. small, medium, or large.
So the first method will have the following signature: public InputStream downloadResource(String url, String encoding); The URL will be for HTTP. I'm not sure whether encoding - e.g. UTF-8 - or mime type is more appropriate here - please advise.
Each downloaded file can be saved to an RMS store called Resource usng the following signature: public void saveResource(String key, InputStream is);
It is possible to retrieve the file from RMS using the following signature: public InputStream retrieveResource(String key);
It may be possible/permissable to use byte arrays instead of InputStreams in the methods - please advise.
Please write a self-contained Midlet that allows the entry of a key and url on screen and then displays the download icon as an Image using all three methods above to validate the end to end process - i.e. enter, download, save, retrieve and display.