image from gallery to image in bytes.. also data in bytes.. for facebook upload in android
<p>I got code to upload picture and video to Face Book..
But i don't know how to convert image from gallery to image in bytes.. also data in bytes.. Any one can help me????   </p>

<pre><code>*Upload picture,
 Bundle params = new Bundle();
 params.putByteArray("picture", &lt;image in bytes&gt;);
 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", &lt;dataName&gt;);
param.putByteArray("video", &lt;data in bytes&gt;);
 mAsyncRunner.request("me/videos", param, "POST", new SampleUploadListener());**

this is code for upload images...    
Any one know how code for my question please post.....
</code></pre>

<p>thanks in advance</p>
