ByteArray to BitmapData conversion

hello,
i want to do some cryptographic routines in my flash.
I’ve encrypted .jpg files on my server, so I can’t use simple Loader class, to download
that data as Bitmap.
I’m thinking to:

  1. download it with URLLoader as BINARY data in ByteArray class.
  2. decrypt the data
  3. convert to BitmapData. (…, is this possible ?:slight_smile:

please tell me some advices on how could I do image crypting in fl.
does anybody do that stuff ? ;]