On 28/05/2012 9:51, Madhu wrote:
> Hi! all
> I create client & through client i call the web service.
> which returns pdf file, i want to stored that file directly.
> I use this
> response['Content-Disposition'] = 'attachment; filename= 'demo.pdf'
> but it will ask the user to store the file, but i want to store it 
> automatically on server.
> can anybody please suggest me, how it should be done?
> 
> Thanks

If you use response in the way you do, it will indeed ask to store the file.
As you seem to be able to present the pdf file, I don't see why you can't write 
the file
to a media directory?
You can then serve up these files directly or via a model.

It's not actually clear what you want to accomplish exactely.

Cheers,
Benedict


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to