Writes a section of a character array to the stream of the image file, and advances the current position of the stream in accordance with the Encoding used and perhaps the specific characters being written to the stream.