Hallo
Also ich hab nicht so viel Erfahrung mit Lotus Script.
Jedoch hab ich mal einen Java Agenten geschrieben der ein Textfile als BLOB spreichert.
Ich hole eine Datei aus einem Notes Doc und schreibe dann den Inputstream in die MySql Tabelle. Hier ein Teil aus dem Code:
com.mysql.jdbc.Driver mysqlDBDriver;
Connection con = DriverManager.getConnection( "jdbc:mysql://"+hostname+"/"+database+"", username, password );
stmt = con.createStatement();
con.setAutoCommit(false);
con.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE);
...
...
...
EmbeddedObject obj = settdoc.getAttachment("local.cf");
String sqlcommand2 = "INSERT INTO sa_config (config_data, datetime) VALUES ( ?, ?)";
insertStatement = con.prepareStatement(sqlcommand2);
InputStream is = obj.getInputStream();
byte[] buffer = new byte[1024];
int x = 0;
while (true) {
int nbytes = is.read(buffer);
x = x+nbytes;
if (nbytes == -1) break;
}
is = file.obj.getInputStream();
insertStatement.setBinaryStream(1, is, x);
insertStatement.setString(2, datum);
insertStatement.execute();
con.commit();
con.close();
...
...
Hoffe das hilft dir weiter