W.S
W.S

Reputation: 931

How to load Images from Java Server+MySql to Android Client

I've a social networking app for android in which i can view list friends after fetching from java server +mySql database, actually i have done with loading all information from Java Servlets to android client but i'm unable to load images which are stored as blob in mysql on the server side database.

I tried to send blob objects to android client as strings and then tried to convert them in bitmap at the android client side. but I could not do what i wanted.. :(

Can anyone suggest me how to do it?

Upvotes: 0

Views: 1331

Answers (1)

a.bertucci
a.bertucci

Reputation: 12142

I think a viable solution is to put a simple blob servlet capable to send a image/your_image_format response via HTTP. This way you can easily download/decode the Bitmap in your Android client from the servlet response, then set it as your ImageVIew source.

Upvotes: 1

Related Questions