One of the features of TiddlyWeb is that you can easily store binary content (such as image data) in the Tiddler store and use it either directly (via the url of the tiddler) or within a TiddlyWiki. If the binary content is sufficiently short to be represented in a data uri it is included within the generated TiddlyWiki, otherwise a link back to the server is used.
It is the presentation of that data uri that is the question. I believe there are several slightly different formats floating, some I've done, some Eric has done, and presumably some others. Seems like it would be useful for us to come up with something that we all like and just use that. TiddlyWeb makes a tiddler with binary content have a text field of the full data uri of the content: data:image/png;base64,iVBORw0K... The idea being that this could then be paired with an extension to the wikifier which knows how to handle data uris (e.g. in the case of a type of image/* it would make an image tag with the entire data uri as the src; for non-image/* it would make an href). This feels like it has some usability issues. Other options I've heard include: * When producing the tiddlywiki wrap the data uri in useful HTML. * Put only the data part of the data uri in the tiddler.text and put the mime type and encoding type in fields. All of these have, amongst other issues, a similar problem: If the tiddler is opened for edit it is far too easy to corrupt the data. What sort of useful solutions for this problem already exist? Anybody have new ideas? Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To post to this group, send email to tiddlywikidev@googlegroups.com To unsubscribe from this group, send email to tiddlywikidev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tiddlywikidev?hl=en -~----------~----~----~----~------~----~------~--~---