How to upload a Bitmap to a server?

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

How to upload a Bitmap to a server?

Postby kombadil » Tue Mar 25, 2008 9:54 am

Hi there,

I've followed this link and I know how to upload a file to a server: ... 3-s30.html

However, let's say I've a Bitmap that I've received from the web, and I want to upload it to a server. Is there any ways to upload the Bitmap directly without first saving it as a file?

Based on the link above, I think I just need to get the FileInputStream from the Bitmap. But I don't know how ...


Once Poster
Once Poster
Posts: 1
Joined: Tue Mar 25, 2008 9:47 am


Postby plusminus » Sat Mar 29, 2008 7:19 pm

Hello kombadil,

sorry for the late answer.

You could just save/load the Data to a ByteArray using ByteArray(In/Out)putStreams.

Image | Android Development Community / Tutorials
User avatar
Site Admin
Site Admin
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany


Return to General

Who is online

Users browsing this forum: No registered users and 3 guests