I have a problem Accessing the file path of an uploaded image. I'm trying to create a custom Carousel and build it up in a Drupal Block. I'm pulling the array created from the view of the content type like so:
$slides = views_get_view_result('slide');
foreach ($slides as $slide) {
echo $slide->_field_data['nid']['entity']->field_slide_image['und'][0]['uri'];
}
My problem is that URI prints out "public://someimage.jpg" instead of "someimage.jpg" or "sites/all/images/someimage.jpg." I know I could do a string replace on this, but Drupal must have a way of getting the right file path to the image. Any suggestions?