I actually fixed my issue with the following code :

for (rv = apr_dbd_get_row(dbd->driver, r->pool, res, &row, -1);
        rv != -1;
        rv = apr_dbd_get_row(dbd->driver, r->pool, res, &row, -1)) {

    file_data = apr_brigade_create(r->pool, r->connection->bucket_alloc);

    if(apr_dbd_datum_get(dbd->driver, row, 3, APR_DBD_TYPE_BLOB, file_data) != 
APR_SUCCESS)
    {
        ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "Unable to fetch file 
data");
        apr_brigade_destroy(file_data);
        return DECLINED;
    }

    apr_brigade_destroy(file_data);
}

I am not sure it is correct though.


Thanks in advance for any help.

--
Jérôme :)

Reply via email to