3

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.

Santhosh Nayak
  • 2,312
  • 3
  • 35
  • 65

2 Answers2

3

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)

Community
  • 1
  • 1
Santhosh Nayak
  • 2,312
  • 3
  • 35
  • 65
1

Please read the following site:

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

It may help.

michael
  • 1,160
  • 7
  • 19