Tente isso, espero que ajude:
URL url = new URL("endereço da imagem");
InputStream in = url.openConnection().getInputStream();
byte[] buffer = readBytes(in);
ContentValues values = new ContentValues();
values.put("campo_da_imagem", buffer);
mDataHelper.getWritableDatabase().update("tabela", values, "id=?", new String[]{"id_procurado"});
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.






0 comentários:
Postar um comentário