|
I have got the java code that should do the
job.
PreparedStatement
ps=treeCon.prepareStatement("INSERT INTO LOGOFILE (LGBLOB) VALUES
(?)");
File f = new File("snslogo.gif");
FileInputStream logoStrm=new
FileInputStream(f);
ps.setBinaryStream(1,logoStrm,(int) f.length()); ps.execute();
but when this code is executed on as400 driver SQL
Exception is data typr mismatch.
on ODBC driver it says operation not
supported.
What settings do i require for the db field
description. just declaring a field B and length 9 is enough.
Can anybody suggest what may be wrong on the
backend.
TIA
Kaush
|
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.