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:
http://www.anddev.org/upload_files_to_w ... 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 ...

Thanks!

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

Top

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.

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

Top

Return to General

Who is online

Users browsing this forum: Google Feedfetcher and 2 guests