Another approach would be to create a zip containing all files you want to send 
and append that. Though you should then append the file as input stream instead 
of an in-memory data object as you don't know how big that file will get.

jw


Am 24.11.2011 um 08:39 schrieb Jérémy DE ROYER [INGENCYS]:

> Hi,
> 
> I've never done that and I don't think it's possible.
> 
> To do the same, we list the files and create a link for each one.
> 
> Jérémy
> 
> Le 24 nov. 2011 à 06:58, pavan.jayam a écrit :
> 
>> Hi List,
>> 
>> I am attaching a excel file to response, when i get response form 
>> appendToResponse i am downloading the attached excel file.
>> 
>> public void appendToResponse(WOResponse aResponse, WOContext aContext) {
>>      aResponse.setHeader("application/vnd.ms-excel", "Content-Type");
>>      aResponse.setHeader("Content-Disposition", "attachment; 
>> filename="+file);
>>      aResponse.appendContentData(excelData);
>> }
>> 
>> but i need to send multiple files(excel files) as attachment to the 
>> WOResponse.
>> 
>> If it is possible please let me know.
>> 
>> Thanks in advance.
>> 
>> Regards,
>> Pavan.


 _______________________________________________
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]

Reply via email to