Mike, I'm not sure of the exact code to insert into MySQL, but this
will probably work. Turn the image into a base64 encoded
String so that
it can easily be stored in a large character field in MySQL. Then decode
when the image is selected out. This should work with most Databases.
If performance is a major issue then this might not be the best solution as
there is the extra decode step.
--- Images --------------
image_id NUMBER( 14 )
image_name VARCHAR2( 50 )
image CLOB or the equivalent in MySQL
-------------------------
---- Upload image servlet --------
Scott