PhotoCard Sample

The PhotoCard sample illustrates how to use the large address space available in the 32-bit version of the simulator. The sample uses the large address space of the smart card's EEPROM memory to store up to four GIF images. The images are included with the sample.

The PhotoCard sample consists of two parts: a card applet and a client program that communicates with it. The photocard applet employs a collection of arrays to store large amounts of data. The arrays allow the applet to take advantage of the platform's capabilities by transparently storing data.

The design and coding of applications that use the large address space to access memory must adhere to the target platform's requirements. Smart cards have limited resources and code cannot be guaranteed to behave identically on different cards. For example, if the photocard applet runs on a card with less mutable persistent memory available for storage, it might run out of memory space when it attempts to store the images. A set of inputs might not produce the same set of outputs in a simulator with different characteristics. The applet code must account for this.

Follow one of these sets of instructions to run this sample: