EBS Customizations (MOSC)

MOSC Banner

ORA-29532: Java call terminated by uncaught Java exception: java.sql.SQLException: Invalid argument

I have the below java code t convert the bmp to jpg

create or replace and compile java source named Bmp2JPG

as


import oracle.sql.BLOB;

import oracle.sql.*;

import oracle.jdbc.driver.*;

import java.sql.*;

import javax.imageio.ImageIO;

import java.awt.image.BufferedImage;

import java.io.ByteArrayOutputStream;

import java.io.File;

import java.io.FileOutputStream;

import java.io.OutputStream;

import java.io.*;

import java.util.*;

import javax.imageio.ImageIO;

import java.awt.image.BufferedImage;

import java.sql.Blob;


public class Bmp2JPG {


 static OracleDriver ora = new OracleDriver();

 static Connection conn;

 static ByteArrayOutputStream out;

 static {

 try {

  conn = ora.defaultConnection();

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