From kde-devel Sun Oct 11 21:46:39 2009 From: "Gary L. Greene, Jr." Date: Sun, 11 Oct 2009 21:46:39 +0000 To: kde-devel Subject: Re: Storing images in KConfig keys Message-Id: <200910111446.39945.greeneg () tolharadys ! net> X-MARC-Message: https://marc.info/?l=kde-devel&m=125529766305095 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 <<