Re: Downloading attachments to clients from an OB database from WO
Re: Downloading attachments to clients from an OB database from WO
- Subject: Re: Downloading attachments to clients from an OB database from WO
- From: Robert Walker <email@hidden>
- Date: Sat, 14 Feb 2004 00:21:14 -0500
Jason,
Sorry about that. I have updated the FileDownloader.java class to work
with WebObjects 5.2. Simply download and replace the previous version.
Use the following action method to download files:
public WOComponent downloadFile() {
FileDownloader downloader =
(FileDownloader)pageWithName("FileDownloader");
downloader.setMimeType("application/pdf");
downloader.setFileName(NSPathUtilities.lastPathComponent(filePath));
downloader.setData(fileData);
return downloader;
}
On Feb 13, 2004, at 10:35 AM, Jason McKay wrote:
> Robert Walker <email@hidden> writes:
>> http://homepage.mac.com/robertwalker1
>
> Thanks for the advice Robert, however this does not work with
> Webobjects
> Builder 5.2 and Project Builder 2.1. The classes you reference in the
> demonstration file do not correspond to anything in the new versions.
> Perhaps there is a newer way of doing it in the newest version? Any
> other
> help would be greatly appreciated. Thank you.
>
> Respectfully,
> Jason
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.
>
>
--
Sincerely,
Robert Walker
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.