首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > java库的图片

java库的图片

  • 资源大小:12.45 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: java 图片

资 源 简 介

Summary This library is intended to ease image uploads to TwitPic by handling the construction of multipart/form-data POST requests. The library offers methods for both the "upload" and "uploadAndPost" TwitPic API calls. It"s extremely easy to use and designed to be lightweight. Features Easy implementation Built-in exceptions for TwitPic error responses Byte array uploads, specifically designed for Android camera callbacks. Example Code ``` // Create file File picture = new File("images/somepic.jpg"); // Create TwitPic object and allocate TwitPicResponse object TwitPic tpRequest = new TwitPic("username", "password"); TwitPicResponse tpResponse = null; // Make request and handle exceptions try { tpResponse = tpRequest.uploadAndPost(picture, "Hello World!!!"); } catch (IOException e) { e.print
VIP VIP
0.185213s