Thursday 19 February 2015

JAVA : TempFile : How to avoide InputStrem Loss.

TempFile : How to avoide InputStrem Loss.


1. Assume we are getting stream from UCM, and we are going to use that stream in our java code.
If file is huge then we may not handle that stream for long time, It will be lost after some time.

So to avoide that we can get the stream and write it in to tempFile, and then we can use that stream for further coding.

Below is the sample code:


No comments:

Post a Comment