• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Downloading attachments to clients from an OB database from WO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Downloading attachments to clients from an OB database from WO (From: Robert Walker <email@hidden>)
 >Re: Downloading attachments to clients from an OB database from WO (From: "Jason McKay" <email@hidden>)

  • Prev by Date: Re: blocking component from being cached
  • Next by Date: Re: blocking component from being cached
  • Previous by thread: Re: Downloading attachments to clients from an OB database from WO
  • Next by thread: blocking component from being cached
  • Index(es):
    • Date
    • Thread