If you fail to create the temporary file, I'd just throw a ManifoldCFException. Karl
On Mon, May 2, 2011 at 1:36 PM, <ho...@farzad.net> wrote: > I'm creating the temp file in the addOrReplaceDocument method > (BaseOuputConnector Interface), if the temp file creation fails, what would > be the right return code. Right now I'm choosing between > DOCUMENTSTATUS_ACCEPTED or DOCUMENTSTATUS_REJECTED, what is the right way of > communicating an internal error in the connector? > > On Mon, 2 May 2011 12:50:07 -0400, Karl Wright <daddy...@gmail.com> wrote: >> >> Using a temporary file is the right approach. >> >> Karl >> >> >> On Mon, May 2, 2011 at 12:30 PM, <ho...@farzad.net> wrote: >>> >>> So I just learnt that you can not reuse a stream. In my code I create a >>> hash from the file content, and then I want to sent it via http to the >>> archive server. You guessed it the InputStream is not valid anymore. >>> The >>> best solution I've figured out was to read the content into a temporary >>> file >>> where I can restart it. Thoughts? Thanks! >>> > >