[Interest] (no subject)

Atlant Schmidt aschmidt at dekaresearch.com
Mon Nov 21 15:32:30 CET 2011


Graham:

  I'm not sure I understand your question so let me try an answer
  and you can tell us whether that answer is germane to your
  question ;-).

  Essentially, there are two ways to store any non-textual
  data in association with a basically-textual document:

    o Internally - In this situation, you store the actual
       non-textual data within the text document. This almost
      always requires recoding it into a textual format that
      will fit within your text document. Base64 encoding is
      one very common method of doing this. The upside is
      that everything you (or your users) need is in one file;
      nothing gets lost or left behind if the file is transferred.
      The downsides are that 1) the file can grow large; 2) the
      file contains long runs of date that's not-very-readable
      by humans; and 3) the user will need your tool to extract
      the embedded images (etc.).

    o Externally - In this situation, you keep the non-textual
       files in whatever native format they arrived in and just
       embed a link to them within your textual document.
       The advantages and disadvantages are the reverse of
       the situation above. Advantages: 1) The textual file
       stays at an easily-manageable size; 2) The textual file
       remains entirely readable by humans; and 3) the user
       doesn't need any special tools to access the images (etc.).
       The disadvantage is that it's very easy to leave an image
       (or what-have-you) behind, especially if it's located in
       a far-off folder. In this situation, the receiving user won't
       have a complete document.

                                    Atlant


From: interest-bounces+aschmidt=dekaresearch.com at qt-project.org [mailto:interest-bounces+aschmidt=dekaresearch.com at qt-project.org] On Behalf Of Graham Labdon
Sent: Monday, November 21, 2011 07:07
To: Qt-interest at qt.nokia.com; Interest at qt-project.org
Subject: [Interest] (no subject)

Hi
I am attempting to develop a simple text editor app that is able to save and read files in a custom XML format (designed by me).
The user should be able to add an image to the document, but I am having trouble coming up with a strategy to save this to my file other than saving the data inline.

Has anyone else done this before or have any ideas on a good strategy?

Thanks

Graham Labdon


Click here<https://www.mailcontrol.com/sr/5NnApu+d4NHTndxI!oX7UpIe2cJSs1VgbU1VrKW03OLwWqx6t1JS6y5RUUkuKyUetgEmSj0QtNVhjvXYAQ53ow==> to report this email as spam.

________________________________
This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20111121/bd03beeb/attachment.html>


More information about the Interest mailing list