Package weibo4j.http

Examples of weibo4j.http.ImageItem


      Weibo weibo = new Weibo();
      weibo.setToken(args[0]);
      try{
        byte[] content= readFileImage("psu.jpg");
        System.out.println("content length:" + content.length);
        ImageItem pic=new ImageItem("pic",content);

        String s=java.net.URLEncoder.encode( args[1],"utf-8");
        Timeline tl = new Timeline();
        Status status=tl.UploadStatus(s, pic);
View Full Code Here


  public static void main(String args[]) {
    try {
      try {
        byte[] content = readFileImage(args[2]);
        System.out.println("content length:" + content.length);
        ImageItem pic = new ImageItem("pic", content);
        String s = java.net.URLEncoder.encode(args[1], "utf-8");
        Timeline tl = new Timeline();
        tl.client.setToken(args[0]);// access_token
        Status status = tl.UploadStatus(s, pic);
View Full Code Here

TOP

Related Classes of weibo4j.http.ImageItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.