I put a file in jackrabbit workspace using webdav, but i can't retrieve
this file. I try this:
public byte[] readFile(WebDavServerConfig serverConfig, String path,
String fileName) throws BasicException {
        //String resource =
                
"http://localhost:9080/jackrabbit-webapp-2.3.6/default/file.zip";;

        HttpClient client = getClient(serverConfig);
        PropFindMethod method = null;
        try {
                method = new PropFindMethod(resource);
                // Execute the method.
                int statusCode = client.executeMethod(method);
                // Read the response body.
                byte[] responseBody = method.getResponseBody();
        
                return responseBody;
        } finally {
                // Release the connection.
                method.releaseConnection();
        }
}

but when "method = new PropFindMethod(resource);" is executed my
aplication go to finally and don't put nothing in the log, what i need
to do to retrieve a file?

Thanks,
Bruno Vaz de Melo

Reply via email to