AW: BinaryDataProvider

2010-05-18 Thread Kockert, Timo
added my custom provider using Spring via . Works like a charm :-) Greetings, Timo Von: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Gesendet: Dienstag, 18. Mai 2010 13:09 An: Kockert, Timo Cc: users@cxf.apache.org Betreff: Re: BinaryDataProvider Hi On Tue, May 18, 2010 at 8:31 AM, Kockert, Timo

AW: BinaryDataProvider

2010-05-18 Thread Kockert, Timo
] Gesendet: Montag, 17. Mai 2010 19:17 An: users@cxf.apache.org Betreff: Re: BinaryDataProvider Hi On Mon, May 17, 2010 at 5:45 PM, Kockert, Timo < timo.kock...@adesso-mobile.de> wrote: > Hello everyone, > > I am using JAX-RS and implemented a method that returns files from disk. &g

BinaryDataProvider

2010-05-17 Thread Kockert, Timo
Hello everyone, I am using JAX-RS and implemented a method that returns files from disk. The response is handled by the BinaryDataProvider because its isWriteable() method returns true for File objects. However getSize() only returns a useful length for byte arrays. I was wondering why that is?