I have an jpg image inside as a byte array. How can i dump this byte array to a jpg and write on it’s canavas then save it on the sd card ?
Any ideas are welcome. Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
BitmapFactory.decodeByteArray()to get aBitmap, then create aCanvasusing that Bitmap, and draw the text there. Finally save it by usingBitmap.compress():