Results 1 to 18 of 18

Thread: qtsoap

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2007
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    3

    Default Re: qtsoap

    Quote Originally Posted by wysota View Post
    This is just a grammar, you don't need it, just get a base64 encoder or write one yourself, it's trivial.



    Qt Code:
    1. QBuffer buf;
    2. QImage img; // contains your image
    3. img.save(&buffer, "JPEG");
    4. QString encodedstring = base64(buffer.data().constData());
    5. QDomElement elem = doc.createElement("base64Binary");
    6. elem.setAttribute("name", "somename");
    7. elem.appendChild(doc.createTextNode(encodedstring));
    8. QSoapSimpleType arg;
    9. arg.parse(elem); // this should get you a valid QSoapSimpleType object
    To copy to clipboard, switch view to plain text mode 

    What are the

    [HTML]elem.setAttribute("name", "somename");[/HTML]

    What Will i have to pass here on "name", "somename" in case of this Webservice

    http://xrl.us/urur

    Thanks in Advance

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: qtsoap

    Quote Originally Posted by anoop View Post
    What are the

    [HTML]elem.setAttribute("name", "somename");[/HTML]
    Do you have any knowledge about XML or webservices?

    What Will i have to pass here on "name", "somename" in case of this Webservice

    http://xrl.us/urur
    You can either ignore it or set the argument name there (like srcImage or whatever is needed)...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.