Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


I was using XML-RPC to upload image from Android to Odoo, why so slow?

on 8/30/16, 5:06 AM 97 views
I was set some breakpoints in odoo ir.attachment and found most of the time consuming was before the "create" method.
This is the Android code:
HashMap map = new HashMap();
map.put("res_model", res_model);
map.put("res_name", res_name);
map.put("type", "binary");
map.put("res_id", res_id);
map.put("name", "image");
map.put("datas", image2Base64(imagePath));
try {
    models.execute("execute_kw", asList(
        db, uid, password,
        "ir.attachment", "create",
} catch (XmlRpcException e) {

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 8/30/16, 5:06 AM
Seen: 97 times
Last updated: 8/30/16, 7:10 AM