I have a method that generates a data URI from a byte array. In the event the input byte array is empty, what is the appropriate thing for the method to do? Here are the options I see:
- return an empty String
- throw an Exception
By my read, RFC 2397 doesn't explicitly address the notion of empty data.