Santhosh Nayak
Santhosh Nayak

Reputation: 2288

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.

Upvotes: 3

Views: 5053

Answers (2)

Santhosh Nayak
Santhosh Nayak

Reputation: 2288

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)

Upvotes: 3

michael
michael

Reputation: 1160

Please read the following site:

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

It may help.

Upvotes: 1

Related Questions