简体   繁体   中英

Flex working with images (converting from and to Bytearray)

I'm having a task in which I have to read and save images in the database.

I'm using C#.net Webservice and SQlserver2008 database and I'm saving image as varbinary format.

I want to know

  1. How I can read images from local system and convert it into byte array in Flex ?
  2. How to show images in Flex that are recieved in type Bytearray?

Any tutorials or code examples will be helpful.

I refered Below Link Nice working fine...

  1. How I can read images from local system and convert it into byte array in Flex ?

Answer:

Loading a local file to a byte array in Flash Player 10 with Flex SDK 3.4+

  1. How to show images in Flex that are recieved in type Bytearray?

Answer: yourImage.source = yourByteArray; ( From This )

Please read the following site:

http://blog.yoz.sk/2009/10/bitmap-bitmapdata-bytearray/

It may help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM