# ByteArray to BitmapData conversion

**URL:** <https://forum.kirupa.com/t/bytearray-to-bitmapdata-conversion/231492>\
**Category:** Uncategorized\
**Created:** [July 5, 2007, 8:48am UTC](https://forum.kirupa.com/t/bytearray-to-bitmapdata-conversion/231492 "2007-07-05T08:48:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![plog](https://avatars.discourse-cdn.com/v4/letter/p/54ee81/32.png) [@plog](https://forum.kirupa.com/u/plog)\
**Post date:** [July 5, 2007, 8:48am UTC](https://forum.kirupa.com/t/bytearray-to-bitmapdata-conversion/231492/1 "2007-07-05T08:48:16Z")

</div>

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 ?🙂

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