[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Storing images in KConfig keys
From:       Michael Pyne <mpyne () kde ! org>
Date:       2009-10-11 22:42:41
Message-ID: 200910111842.41594.mpyne () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Sunday 11 October 2009 18:03:03 Stefan Majewsky wrote:
> I don't think it's base64-encoded, because the following code works to read
>  a base64-encoded image from a hand-written config file:

I went and looked and binary data is encoded, at least for KConfigINI backend 
(see kconfigini.cpp, writeEntries() and stringToPrintable())

It seems to me that it is possible to choose a superior text-encoding method 
beforehand however (as bytes that require encoding will take up 4x more 
space), which should reduce the space required in the config file.

I'm going to assume that's there's no way to simply save out the binary data 
to disk and store a reference to the file name in your KConfig? :)

Regards,
 - Michael Pyne

["signature.asc" (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic