As the above code was not compiled ,I tried with one solution suggested by reamon in previous thread Writer out = clob.getAsciiOutputStream(); and got the same result.
Can you post all the code to the service (I’m assuming the above is just a snippet)? Can you post the compiler error too?
out.write(java.io.InputStream stream); has two problems.
The type declaration of java.io.InputStream isn’t legal here unless you are trying to cast the stream object. In that case the right syntax would be
out.write((java.io.InputStream) stream);
The stream object isn’t defined anywhere (I was assuming you posted just a snippet and omitted pipeline related code but perhaps that is not the case?).
Removing the null assignment didn’t really change anything. Variables without an initial assignment are null. At run-time the code will still fail if you don’t create/get a CLOB object. It will compile but it won’t run.
Sorry I missed this earlier. java.io.Writer does not have a write() method. You’ll need create a loop that reads from the input stream and writes to the output stream.