|
|
|
|
|||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
KIO::http_post problem
Hi,
I am trying to create a KDE application to uplaod photos to Coppermine Photo Gallery. I was able to upload using QHttp but I want syncronous calls so that progress bar, etc can be done. I am trying with KI namespace but I am getting error of undefined reference. Here's what I am trying to do: QByteArray array; QBuffer buffer(array); QTextStream textStream(&buffer); textStream.setEncoding(QTextStream::UnicodeUTF8); textStream << dd << boundary << crlf; buffer.close(); KI::TransferJob *job = KI::http_post(url, array, false); job->addMetaData("content-type", "Content-Type: multipart/form-data; boundary=" + boundary); I have include kio/job.h to get the KI namespace. I am getting following errors: undefined reference to `KI::http_post(KURL const&, QMemArray<charconst&, bool)' undefined reference to `KI::Job::addMetaData(QString const&, QString const&)' The second argument required for http_post should be of type QByteArray and my variable array is of that type but still it is considered as an object of QMemArray. Thanks in advance for all your help. Regards, -- Aditya Mooley PHP Applications for E-Biz: http://www.sanisoft.com Coppermine Picture Gallery: http://coppermine.sf.net >Visit #unsub to unsubscribe << |
|
#2
|
|||
|
|||
|
KIO::http_post problem
Thursday 12 January 2006 07:20, Aditya Mooley wrote:
undefined reference to `KI::http_post(KURL const&, QMemArray<charconst&, bool)' You need to link to the kio library. Add $(LIB_KI) to your Makefile.am, or -lkio if not using the standard kde build system. -- David Faure, faure (AT) kde (DOT) org, sponsored by Trolltech to work on KDE, Konqueror (http://www.konqueror.org), and K (http://www.koffice.org). >Visit #unsub to unsubscribe << |
![]() |
| Viewing: Web Development Archives > Mailing Lists > KDE > KIO::http_post problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|