• 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: download Link with NSData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: download Link with NSData


  • Subject: Re: download Link with NSData
  • From: 時期 精霊 <email@hidden>
  • Date: Wed, 15 Jun 2005 11:11:09 +0200

Hello,

do something like that in a WOComponent

public void appendToResponse(WOResponse r, WOContext c) {
// super.appendToResponse(r,c);
r.setContent(pdfData());
r.setHeader("application/pdf", "content-type");
filename = filename.replace(' ', '_'); // Important for IE
r.setHeader("filename="+filename, "content-disposition");
}


Look at

http://fulgore.goyman.com/viewcvs/viewcvs.cgi/Yurika/YUFopPDF.java? rev=1.2&content-type=text/vnd.viewcvs-markup

For example.
Regards

Kuon
On Jun 15, 2005, at 10:57 AM, Raphael wrote:

Hi,
I would like to create a download link of nsdata that is stored into the database!!


At the moment i use WOResourceManager to setData
then i combine a String with "http://localhost/cgi-bin/WebObjects/ Applicationb.woa/wr?wodata=" + document.name();


If i start the download every thing is work fine but the downloaded document name called wr!!
Has someone a idea?


Thanks,
raphael
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40goyman.com


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >download Link with NSData (From: Raphael <email@hidden>)

  • Prev by Date: Re: PostgreSQL plugin
  • Next by Date: OpenSource WebObjects
  • Previous by thread: download Link with NSData
  • Next by thread: OpenSource WebObjects
  • Index(es):
    • Date
    • Thread