Serial.write() lets you send a byte stream. You can put any data you like on that byte stream - just be aware that the receiver will need to do the same thing in reverse to extract the data from the incoming byte stream so you should choose an encoding scheme that makes this easy for the receiver.