How to pass fileName on GET Bob request

10 views
Skip to first unread message

Алексей Костарев

unread,
Jan 28, 2014, 11:51:46 AM1/28/14
to lily-d...@googlegroups.com
When I request blob file and want to pass fileName for client application.

GET /repository/{repositoryName}/table/{tableName}/record/{id}/field/{fieldName}/data

send Blob, but client see it as file with name: data

I want to send to client other filename.

For example myfile.pdf.

Usual it's made by http-header:
Content-Disposition: inline; filename="myfile.pdf"

But I cannot set this header in GET response in Lily...

Prashant Saraswat

unread,
Feb 7, 2014, 1:18:17 PM2/7/14
to lily-d...@googlegroups.com
Hi,

One way to workaround this would be to write a wrapper around the lily api and stream the blob yourself instead of relying on the lily REST service.

Thanks
Prashant


--
You received this message because you are subscribed to the Google Groups "lily-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lily-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--

Reply all
Reply to author
Forward
0 new messages