j2me facebook graph api - posting image on a user wall
===

I'm trying to post image from device on user's wall. I have found: http://codenameone.blogspot.com/2011/09/lwuit-and-facebook-api-by-chen-fishbein_18.html, but it doesn't support post image, so I wrote a simple method like this:

     public void postOnWallWithPhoto(String userId, String message, byte[] img) throws IOException {
        checkAuthentication();
        FacebookRESTService con = new FacebookRESTService(token, userId, FEED, true);
        con.setContentType("image/jpeg");
        con.addArgument("message", message);
        con.addArgument("type", "photo");
        con.addArgument("picture", img);
        if (slider != null) {
            SliderBridge.bindProgress(con, slider);
        }
        for (int i = 0; i < responseCodeListeners.size(); i++) {
            con.addResponseCodeListener((ActionListener) elementAt(i));
        }
        current = con;
        NetworkManager.getInstance().addToQueueAndWait(con);
    }

This method is called in this way:

    FileConnection fc = (FileConnection) Connector.open(path);
    InputStream is = fc.openInputStream();
    byte[] b = new byte[(int) fc.fileSize()];
    is.read(b);
    FaceBookAccess.getInstance().postOnWallWithPhoto(me.getId(), "test2", b);


After I send request, on a wall appears only text (in this example test2). In place where should be an image, there is a message: "invalid invalid".

Does anyone have idea, what I'm doing wrong? Or can someone share with me a code that will help me in posting images on a facebook wall?