[when Image type will exist] provide a way to get the data as binary + filename
MEMBER
@severo, maybe somehow related to this PR ?
- #3129
2021-10-22T13:34:23Z
https://github.com/huggingface/datasets/issues/3145#issuecomment-949637531
https://api.github.com/repos/huggingface/datasets/issues/3145
IC_kwDODunzps44mlGb
https://api.github.com/repos/huggingface/datasets/issues/comments/949637531/reactions
2021-10-22T13:34:23Z
https://api.github.com/repos/huggingface/datasets/issues/comments/949637531
https://avatars.githubusercontent.com/u/8515462?v=4
https://api.github.com/users/albertvillanova/events{/privacy}
https://api.github.com/users/albertvillanova/followers
https://api.github.com/users/albertvillanova/following{/other_user}
https://api.github.com/users/albertvillanova/gists{/gist_id}
https://github.com/albertvillanova
albertvillanova
MDQ6VXNlcjg1MTU0NjI=
https://api.github.com/users/albertvillanova/orgs
https://api.github.com/users/albertvillanova/received_events
https://api.github.com/users/albertvillanova/repos
https://api.github.com/users/albertvillanova/starred{/owner}{/repo}
https://api.github.com/users/albertvillanova/subscriptions
User
https://api.github.com/users/albertvillanova
public
COLLABORATOR
@severo I'll keep that in mind.

You can track progress on the Image feature in #3163 (still in the early stage).  
2021-10-26T16:47:48Z
https://github.com/huggingface/datasets/issues/3145#issuecomment-952124364
https://api.github.com/repos/huggingface/datasets/issues/3145
IC_kwDODunzps44wEPM
https://api.github.com/repos/huggingface/datasets/issues/comments/952124364/reactions
2021-10-26T16:47:48Z
https://api.github.com/repos/huggingface/datasets/issues/comments/952124364
https://avatars.githubusercontent.com/u/47462742?v=4
https://api.github.com/users/mariosasko/events{/privacy}
https://api.github.com/users/mariosasko/followers
https://api.github.com/users/mariosasko/following{/other_user}
https://api.github.com/users/mariosasko/gists{/gist_id}
https://github.com/mariosasko
mariosasko
MDQ6VXNlcjQ3NDYyNzQy
https://api.github.com/users/mariosasko/orgs
https://api.github.com/users/mariosasko/received_events
https://api.github.com/users/mariosasko/repos
https://api.github.com/users/mariosasko/starred{/owner}{/repo}
https://api.github.com/users/mariosasko/subscriptions
User
https://api.github.com/users/mariosasko
public
MEMBER
Hi ! As discussed with @severo offline it looks like the dataset viewer already supports reading PIL images, so maybe the dataset viewer doesn't need to disable decoding after all
2021-12-14T15:34:16Z
https://github.com/huggingface/datasets/issues/3145#issuecomment-993664104
https://api.github.com/repos/huggingface/datasets/issues/3145
IC_kwDODunzps47Ohxo
https://api.github.com/repos/huggingface/datasets/issues/comments/993664104/reactions
2021-12-14T15:34:16Z
https://api.github.com/repos/huggingface/datasets/issues/comments/993664104
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
COLLABORATOR
Fixed with https://github.com/huggingface/datasets/pull/3163
2021-12-22T11:05:36Z
https://github.com/huggingface/datasets/issues/3145#issuecomment-999487004
https://api.github.com/repos/huggingface/datasets/issues/3145
IC_kwDODunzps47kvYc
https://api.github.com/repos/huggingface/datasets/issues/comments/999487004/reactions
2021-12-22T11:05:36Z
https://api.github.com/repos/huggingface/datasets/issues/comments/999487004
https://avatars.githubusercontent.com/u/1676121?v=4
https://api.github.com/users/severo/events{/privacy}
https://api.github.com/users/severo/followers
https://api.github.com/users/severo/following{/other_user}
https://api.github.com/users/severo/gists{/gist_id}
https://github.com/severo
severo
MDQ6VXNlcjE2NzYxMjE=
https://api.github.com/users/severo/orgs
https://api.github.com/users/severo/received_events
https://api.github.com/users/severo/repos
https://api.github.com/users/severo/starred{/owner}{/repo}
https://api.github.com/users/severo/subscriptions
User
https://api.github.com/users/severo
public
**Is your feature request related to a problem? Please describe.**

When a dataset cell contains a value of type Image (be it from a remote URL, an Array2D/3D, or any other way to represent images), I want to be able to write the image to the disk, with the correct filename, and optionally to know its mimetype, in order to serve it on the web.

Note: this issue would apply exactly the same for the `Audio` type.

**Describe the solution you'd like**

If a "cell" has the type `Image`, provide a way to get the binary content of the file, and the filename, eg as:

```python
  filename: str
  data: bytes
```

**Describe alternatives you've considered**

A way to write the cell to the disk (passing a local directory), and then return the pathname, filename, and mimetype.
