The present invention comprises a system for communicating image data and other
data. The system comprises a JPEG file having a JPEG data, at least one non-JPEG
data, and a computer. The computer is programmed to read a predetermined number
of sequential bytes of the non-JPEG data. The computer is also programmed to determine
position of each byte in the sequential bytes that contain a JPEG marker and determine
a locator byte, which is capable of indicating the position of any bytes in the
sequential bytes that contain a JPEG marker. The computer is further programmed
to write the locator byte in the JPEG file and write encoded bytes in the JPEG
file. The computer writes the encoded bytes in the JPEG file in a manner wherein,
for each byte in the sequential bytes, if the byte does not contain a JPEG marker,
each byte is replaced with a bit, preferably written as 0, in the order of the
byte's occurrence in the sequential bytes. If the byte does contain a JPEG marker,
the byte containing a JPEG marker is replaced with a place holder bit, preferably
written as 1 and in the order of the byte's occurrence in the sequential bytes.