to save time, please avoid these kinsd of comment
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2671759
ok here is the answer,
in the response the content-length should not be specify, otherwise the client
stop the connection automatically when he reaches this size.
make a new class FileRepresentation
and in the getSize method return Representation.UNKNOWN_SIZE
to fulfill the header restlet use
Hi,
I am trying to download a file while I am uploading it.
But I can only download a part of the file (its length is equal to the size
when I begin to download),
after that the download stop, and I have an exception with the message closed
when I try to write datas on the server side,
On Wed, Oct 13, 2010 at 12:11 PM, Maujean atlan.s...@gmail.com wrote:
I am trying to download a file while I am uploading it.
Why in the name of all that is good in the universe would you do that?
Larry
--
/issues/show_bug.cgi?id=385
Best regards,
Jerome
-Message d'origine-
De : Rob Heittman [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 22 novembre 2007 04:26
À : discuss@restlet.tigris.org
Objet : RE: Using FileRepresentation
Have a look at what we recently did with the non standard
What is the proper way to use FileRepresentation inside
Resource.getRepresentation(Variant)? I'd like to send the user a file if
they browse to a certain URI.
However, when I browse to that URI, it sends me the file, but the original
it doesn't send a filename with it.
Also, why must I set an
Hello Kevin,
if you plan to serve static files, may Directory be what you need, see
part06 of the tutorial
http://www.restlet.org/documentation/1.0/tutorial#part06.
Otherwise, you can use the content-disposition header (which is not
a standard header, see chapters 15.5 and 19.5 of the HTTP rfc
7 matches
Mail list logo