From: "C. Ferguson" <c_ferguson@rationalconcepts.com>
Subject: Re: Producing BMP Images with Java and Oracle
Date: 2000/07/07
Message-ID: <39663DB2.3E3AF501@rationalconcepts.com>#1/1
Content-Transfer-Encoding: 7bit
References: <8k5c0g$5a6s$1@nntp6.u.washington.edu>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@home.net
X-Trace: news1.alsv1.occa.home.com 963001783 24.5.135.200 (Fri, 07 Jul 2000 13:29:43 PDT)
Organization: @Home Network
MIME-Version: 1.0
NNTP-Posting-Date: Fri, 07 Jul 2000 13:29:43 PDT
Newsgroups: comp.databases.oracle.server


Hi,
  haven't done this myself, but you could try to convert your image to a gif
file.  There is a free gif encoder at something like www.acme.org?  Or just
search the web for a java gif encoder.  Then you could stream that into a BLOB.

hth,
cindy

Greg Strylewicz wrote:

> My end goal is to create a database function that uses an input to create a
> barcode which can then be printed.  I've got a program that will create the
> barcode, but it's output is a java.awt.Image and I need a BMP or other
> lossless format.  I've tried loading Java Advanced Imaging API to the
> database (8.1.6 on Windows NT) but parts of it will not compile and don't
> produce meaningful error messages.  I've tried loading parts of the Java
> 1.2.2 API and using the JPEGEncoder class, but it uses a canvas to draw and
> Oracle reports an unauthorized action error. So, any ideas?  Also, since the
> returned image is a long raw, I'm assuming that I'll have a 32k limit - any
> work-arounds?
>
> Thanks,
> Greg



