Hello -
I am using the apache commons for ftp... looks simple.
excelData() returns NSData
I do this:
public NXComponent ftpReportConfig()
{
FTPClient client = new FTPClient();
try {
client.connect(((Session)session()).company().ftpURL());
if(client.login(((Session)session()).company().ftpAccountName(),
((Session)session()).company().ftpPassword())){
String filename = "Export-"+(new NSTimestamp())+".xls";
client.storeFile(filename, excelData().stream());
client.logout();
}else{
errorText = "Bad authentication";
return null;
}
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
client.disconnect();
} catch (IOException e) {
e.printStackTrace();
}
}
return null;
}
but I get nothing. No errors, and no file?
Anything obvious?
Thanks
James _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]