I’m implementing support for setting binary data to images.

Currently, Image (and ImageModel, etc.) has a source property and a urlChanged 
event.

I can do one of two things:

1. I can change source to url and add a binary property. This would go along 
with a “binaryChanged” event.
2. I can change source to untyped and allow setting (and getting) of either 
strings or BinaryData. I think the event name should be changed to 
“sourceChanged”.

I started implementing it the first way, but I wanted to hear if anyone has a 
compelling reason to do it the second way.

Harbs

Reply via email to