Re: download Link with NSData
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