gundb / gatling

Chat system based on GUN
19 stars 7 forks source link

Add image attachment #7

Open metasean opened 8 years ago

vdaita commented 5 years ago

Maybe we should use a blob -> base64, and then use a field to show an image embed.

vdaita commented 5 years ago

Or, an image could be a message of its own, where you know it is an image since it starts with base64;/ or something.

amark commented 5 years ago

@vdaita yeah I was/have done/do this, though it is never recommended. :/

At some point I want to support binary data transfer which shouldn't be too hard, just not a priority.

For now, the "best" way to do this, would be to store the image in WebTorrent or IPFS or something, and then use GUN to sync the magnet URI or hash or whatever.