If you fail to create the temporary file, I'd just throw a ManifoldCFException.
Karl
On Mon, May 2, 2011 at 1:36 PM, 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. R
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 inter
Using a temporary file is the right approach.
Karl
On Mon, May 2, 2011 at 12:30 PM, 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 no
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
So I just learnt that you can not reuse a stream. In my code I create
a hash from the file content, and the