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

List:       kde-devel
Subject:    Re: Storing images in KConfig keys
From:       "Gary L. Greene, Jr." <greeneg () tolharadys ! net>
Date:       2009-10-11 21:46:39
Message-ID: 200910111446.39945.greeneg () tolharadys ! net
[Download RAW message or body]

On Sunday 11 October 2009 1:59:37 pm Michael Pyne wrote:
> On Sunday 11 October 2009 16:15:07 Stefan Majewsky wrote:
> > Hi,
> >
> > I'll keep it short: What is the recommended way to store an image in a
> >  KConfig key? I've already found ways, such as:
> 
> It's going to end up as binary data so I see no better way than your
> QByteArray solution.
> 
> You could use base64 or one of its many friends to convert to text first
>  and store that but I'm not sure how that's going to help other than to
>  maintain the file editable.  (Of course, that's assuming KConfig doesn't
>  already do a base64 for arbitrary QByteArrays, I haven't checked)
> 
> Regards,
>  - Michael Pyne
> 

With my dream of having KConfig's INI back-end replaceable with an LDAP one, 
I'd *strongly* recommend that this be verified. If it isn't stored as base64, 
it should be.

-- 
Gary L. Greene, Jr.
Sent from:   2:45pm  up 1 day 11:58,  4 users,  load average: 0.37, 0.31, 0.20
==========================================================================
Developer and Project Lead for the AltimatOS open source project
Volunteer Developer for the KDE open source project
See http://www.altimatos.com/ and http://www.kde.org/ for more information
==========================================================================

Please avoid sending me Word or PowerPoint attachments.
 
>> 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