--===============1247723372==
Content-Type: multipart/alternative;
boundary="----=_Part_147346_24695535.1137046812234"

------=_Part_147346_24695535.1137046812234
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi,

I am trying to create a KDE application to uplaod photos to Coppermine Phot=
o
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 KIO 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();
KIO::TransferJob *job =3D KIO::http_post(url, array, false);
job->addMetaData("content-type", "Content-Type: multipart/form-data;
boundary=3D" + boundary);

I have include kio/job.h to get the KIO namespace.

I am getting following errors:

undefined reference to `KIO::http_post(KURL const&, QMemArray const&,
bool)'
undefined reference to `KIO::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 o=
f
QMemArray.

Thanks in advance for all your help.

Regards,

--
Aditya Mooley
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
PHP Applications for E-Biz: http://www.sanisoft.com
Coppermine Picture Gallery: http://coppermine.sf.net
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

------=_Part_147346_24695535.1137046812234
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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 KIO namespace but I am getting error of undefined referenc=
e.



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();

KIO::TransferJob *job =3D KIO::http_post(url, array, false);

job->addMetaData("content-type", "Content-Type: multipart=
/form-data; boundary=3D" + boundary);



I have include kio/job.h to get the KIO namespace.



I am getting following errors:



undefined reference to `KIO::http_post(KURL const&, QMemArray<char&g=
t; const&, bool)'

undefined reference to `KIO::Job::addMetaData(QString const&, QString c=
onst&)'



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
=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
PHP Applications for E-Biz: com">http://www.sanisoft.com
Coppermine Picture Gallery:=20
http://coppermine.sf.net
=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=20

------=_Part_147346_24695535.1137046812234--

--===============1247723372==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


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


--===============1247723372==--