0

I am a noob to android, I am trying to download and save images as encrypted form. Here is the image download method in my custom adapter.

I am bit confused how to save the images as the encrypted form ? after downloading and saving need to encrypt that ?

My Image download code looks like

    AsyncHttpClient client = new AsyncHttpClient();
      String[] allowedContentTypes = new String[] { "image/png", "image/jpeg" };
      client.get(imgUrl, new BinaryHttpResponseHandler(allowedContentTypes) {
          @Override
          public void onSuccess(byte[] fileData) {
              // Do something with the file
              ByteArrayInputStream inputStream = new ByteArrayInputStream(fileData);
              Bitmap bitmap = BitmapFactory.decodeStream(inputStream);
              String tag = (String)holder.image.getTag();
              if(imgUrl.matches(tag)){
               holder.image.setImageBitmap(bitmap);
              }
          }
      });

Please give me a little help to encrypt image

ramesh
  • 4,008
  • 13
  • 72
  • 117

0 Answers0