Hamed Narimani Posted August 27, 2015 Report Posted August 27, 2015 (edited) Hi Everybody!I am working with Revive Adserver with XML_RPC API. The problem is that I can not call AddBanner with an image file attached.I Used this part of code :$data = array( 'phpads55deb65dd5ca45.43027895', 'aImage' => array( 'filename' => $file['aImage']['name'], 'content' => file_get_contents($file['aImage']['tmp_name']), ), 'campaignId' => 1, 'storageType' => 'web' ); $this->client = new Client('http://example.com/api/v2/xmlrpc/'); $this->client->call('ox.addBanner', $data);It sends this ErrorXML error: Invalid character at line 2I made a question at stackoverflow too.Should I use any encoding? I used base64 but didnt work! Edited August 27, 2015 by Hamed Narimani Quote
Hamed Narimani Posted August 27, 2015 Author Report Posted August 27, 2015 problem solved. answer is here and here. andrewatfornax 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.