Thread: RE: Clob or Blob in JDBC -> ImageViewer

RE: Clob or Blob in JDBC -> ImageViewer

From
Peter Mount
Date:
you build the examples using: make examples

Then to run, from that same directory (not example):

java example.ImageViewer jdbc:postgresql:database user password

Just running:

java example.ImageViewer

will generate some useage instructions. Make should also print out some as
well.

Peter

--
Peter Mount
Enterprise Support
Maidstone Borough Council
Any views stated are my own, and not those of Maidstone Borough Council


-----Original Message-----
From: radifan karami [mailto:radif_k@yahoo.com]
Sent: Wednesday, July 19, 2000 5:05 AM
To: pgsql-interfaces@postgresql.org
Subject: RE: [INTERFACES] Clob or Blob in JDBC -> ImageViewer


Sory, I don't know how to run that example (
ImageViewer ).
What the database name should be created before
running ImageViewer ?
When I run that file by typing " java Imageviewer ",
error :
Exception in thread "main"
java.lang.NoClassDefFoundError: ImageViewer (wrong
name: example/ImageViewer)

Because I'm new comer in Java, I need the simpler and
shorter example.
Could anybody gives the simpler example for storing
and displaying image on a postgresql database ?    

Than you.

radif


--- Peter Mount <petermount@it.maidstone.gov.uk>
wrote:
> Comments prefixed with PM:
> 
> --
> Peter Mount
> Enterprise Support
> Maidstone Borough Council
> Any views stated are my own, and not those of
> Maidstone Borough Council
> 
> 
> -----Original Message-----
> From: Matt Fair [mailto:matt@netasol.com]
> Sent: Tuesday, July 18, 2000 12:46 AM
> To: pgsql-interfaces@postgresql.org
> Subject: [INTERFACES] Clob or Blob in JDBC
> ........
> 
> PM: Again, the best example is the ImageViewer
> example application which is
> included in the source.
> 
> Thank you all in advance,
> Matt Fair
> 
> 


__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/


JDBC rs.getString() encoding problem

From
"brucecphsu"
Date:
Hello,
  I write a Java Servlet program which use rs.getString()
to retrive data (UTF-8 encoded data). The char I got is
?(65533).  But if I use a Java AP to retrive the data,
the return char is OK.
  I guess there are some environment variable which
will affect the String return by rs.getString(). Somebody
can give me a hint?   Thanks in advance.

Bruce