Open attachment in composite application

Hi everybody,

how can i develope a component in which i open an image attached in a document? In practice, i have a composite application with a view: when i select a document i would like to open the file attached in another component.

Is it possible?

Thanx all

Andrea