我得到了将图片和视频上传到 Facebook 的代码。但我不知道如何将图片从画廊转换为以字节为单位的图像。还有以字节为单位的数据。任何人都可以帮助我????
*Upload picture,
Bundle params = new Bundle();
params.putByteArray("picture", <image in bytes>);
params.putString("message", "Have fun");
mAsyncRunner.request("me/photos", params, "POST", new SampleUploadListener());*
this is code for upload images...
*Upload video,
Bundle params = new Bundle();
param.putString("filename", <dataName>);
param.putByteArray("video", <data in bytes>);
mAsyncRunner.request("me/videos", param, "POST", new SampleUploadListener());**
this is code for upload images...
Any one know how code for my question please post.....
提前致谢