Hi Miltos,

> Finally, a couple other things:
> a) I call the Resource URI like :
> i.e http://localhost:8181/images_path/thepath/file/the_file_with_extension 
> b)
> How must I write the root c:// or c:\\ (windows)? 
> How must I write directories,filenames  / or \ or // or \\ ?

At first glance, it does not seem a good idea. Why don't you use something like 
the Directory Restlet?
Your URIs could be something like 
http://localhost:8181/thepath/the_file_name_with_extension

where "thepath" means the path of the parent directory relatively to the root 
directory of the Directory Restlet (see 
http://www.restlet.org/documentation/2.0/tutorial#part06).

Best regards,
Thierry Boileau



> Hello again!
> I made all the necessary changes in my code but still I did not manage to 
> solve the problem. I am attaching again the modifyied  classes.
> 
> In the previous message you said that MyResource class is ok so I did not 
> modify anything there!! 
> 
> Now, my Application class  as you noticed has already one restlet so the new 
> code that u post handled accordingly. I dont know of course if I did the new 
> insertations correct.
> The application now produces the following warning message:
> 
> org.restlet.routing.Filter doHandle
> WARNING: A filter was executed without a next Restlet attached to it. 
> 
> and I have an http status error 500.
> 
> Finally, a couple other things:
> a) I call the Resource URI like :
> i.e http://localhost:8181/images_path/thepath/file/the_file_with_extension 
> b)
> How must I write the root c:// or c:\\ (windows)? 
> How must I write directories,filenames  / or \ or // or \\ ?
> 
> Thank u again!
> 
> ps. New code with red font color in MyApplication class.
> 
> Best regards,
> Miltos Miltiadous<TestingFileRepresentation.rar>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2435419

Reply via email to