RE:AYUDA--Extraer archivos adjuntos
Esto lo encontre en la notes.net
espero que te sirva.
1) Document must be saved before you can find attachmnets.
2) Attachments saved from Web browser are not in richtext field, they are directly in document. Use EmbeddedObject obj=doc.getAttachment("file.zip") to set handle to attachment.
3) On client if you do not specify path, files get saved to c:\notes6client\ folder, on server they most probably get saved to c:\domino6server\Domino\ folder, I could not test this today.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
Database db = agentContext.getCurrentDatabase();
Document doc = db.getDocumentByUNID("C9030AAD883E062CC1256E0B0858FED6");
EmbeddedObject obj = doc.getAttachment("bubbles-evil.mp3");
if (obj != null) {
obj.extractFile(obj.getSource());
System.out.println("Extracting "+obj.getSource());
}
} catch(Exception e) {
e.printStackTrace();
}
}
}