I have a bitmap
Bitmap myBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher);
and I want to send this bitmap to my server, like this
ftpclient.storeFile("myserverpath", myBitmap);
but I must send a file; I can't send a bitmap. Do I have to save this bitmap into a file on the phone and then load that file and send it? Or is there a simpler way to do this? I'm using Apache Commons for FTP. Thanks.