# Stream text and images together

**URL:** <https://support.prodi.gy/t/stream-text-and-images-together/1960>\
**Category:** Uncategorized\
**Tags:** image, solved\
**Created:** [August 30, 2019, 12:29pm UTC](https://support.prodi.gy/t/stream-text-and-images-together/1960 "2019-08-30T12:29:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [August 30, 2019, 2:39pm UTC](https://support.prodi.gy/t/stream-text-and-images-together/1960/2 "2019-08-30T14:39:26Z")

</div>

Hi! The problem here is that you're only providing a relative path to the image (relative to your Python script). Even if you used the absolute path of the image on your machine, modern browser typically block local file paths for images etc. for security reasons.

See my post [here](https://support.prodi.gy/t/classification-interface-for-images/1195/2) for more details on how to solve this:

> [@Classification interface for images](https://support.prodi.gy/t/classification-interface-for-images/1195/2):
>
> Your format is correct, but I think the problem is this: By default, modern browsers will block images and other resources from local file paths for security reasons. So if you open the developer tools, you probably see something like “blocked local resource”. See this thread for more details:
> 
> [javascript - Cannot open local file - Chrome: Not allowed to load local resource - Stack Overflow](https://stackoverflow.com/questions/39007243/cannot-open-local-file-chrome-not-allowed-to-load-local-resource)
> 
> To work around this, you could either serve the files locally on a different port, upload them so an S3 bucket or something similar, or use Prodigy’s `fetch_images` helper that takes a stream of image tasks and converts all file paths (local and URLs!) to base64-encoded data URIs.
> 
> ```python
> from prodigy.components.preprocess import fetch_images
> stream = fetch_images(stream)
> 
> ```
> 
> Just keep in mind that this will add the image data to the annotation tasks and store it all in the database. So if you’re working with lots of really large images, your database can potentially get quite large, too.

---

_[View the full topic](https://support.prodi.gy/t/stream-text-and-images-together/1960)._
