Re: [Interest] displaying Qt-coded JPEG image in browser
Am 26.01.2024 um 14:36 schrieb Alexander Carôt via Interest: try: QString encodedString = finalJpg.data().toBase64(); Hi, would love to do that but this leads to error: member reference base type 'char *' is not a structure or union that should be, i guess: QString encodedString = finalJpg.toBase64(); as finalJpg is already a QByteArray. basically same applies to: QString jpgBufferString( finalJpg.data() ); QString encodedString = jpgBufferString.toBase64(); converting from bytearray to char* to string to base64 bytearray to string again? ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] server certificate integration
hi, why not simply read certificate related stuff from file/env and add proper configuration using https://doc.qt.io/qt-6/qsslconfiguration.html and when expiration is about to happen, reload the whole and configure again? regards, alex On 26.02.2024 16:11, Alexander Carôt via Interest wrote: Hi all, I have a secure websocket server based on the Qt example: https://doc.qt.io/qt-6/qtwebsockets-sslechoserver-example.html It requires a certificate and a key which are compiled into the server and it functions well. However, whenever the certificate expires (such as Let’s encrypt after 90 days) I need to recompile the server with the renewed certificate. In order to avoid this process I wonder if it is possible to somehow externally point to the the new certificates without integration at compilation time. Thanks for any hint, best Alex -- http://www.carot.de Email : alexan...@carot.de Tel.: +49 (0)177 5719797 ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] QLibrary multiple loading
> Serge K hat am 4. November 2014 um 09:35 geschrieben: > > As I know from docs and my own experience QLibrary loads each DLL only once. > While next load attempt it just increases usage counter. This means all DLL’s > static data are loaded only once too. But I need allow different threads load > each own copy of DLL with it’s own copy of static data. Otherwise all data in > DLL become shared between threads which I do not need. I need force each > loaded DLL copy work as “object” with it’s own static data set. Now I > dynamically create numbered copies of DLL files but this is not elegant > solution. Is there any way to force QLibrary load DLL from same file but to > separate memory as it would be loaded from separate file? Important – I make > crossplatform application, it must work in Windows and Linux at least. > > > -- > Serge K > Hi, i think you should look into the factory pattern. i normally export a ClassFromDll* createInstance(); or alike, to create distinct instances of my data from a single dll. besides, i don't know if this is possible the way you want. alex___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest