PL/SQL (MOSC)

MOSC Banner

I am getting error ora-03113 end of file on communication channel while compiling java source on dat

edited Jun 3, 2009 2:32AM in PL/SQL (MOSC) 2 commentsAnswered
Hi all,

this my  java source I am trying to compile it  on oracle I am getting error

CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "ZIPImpl" AS
import java.io.*;
import java.util.zip.*;
import java.sql.*;
import oracle.sql.*;

public class ZIPImpl
{
public static void zipBlob(oracle.sql.BLOB srcBlob, oracle.sql.BLOB dstBlob[],java.lang.String name) {
try {
OutputStream outBuffer = dstBlob[0].getBinaryOutputStream();
InputStream inBuffer = srcBlob.getBinaryStream();
ZipOutputStream zip = new ZipOutputStream(outBuffer);
zip.setMethod(ZipOutputStream.DEFLATED);
byte[] tmpBuffer = new byte[256];
ZipEntry entry = new ZipEntry(name);
zip.putNextEntry(entry);
int n;
while ((n = inBuffer.read(tmpBuffer)) >= 0)
zip.write(tmpBuffer, 0, n);

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center