Flex works with images (conversion from and to Bytearray)

I have a task in which I have to read and save images in a database.

I use C # .net Webservice and the SQlserver2008 database, and I save the image as a varbinary format.

I want to know

  • How can I read images from the local system and convert them to a byte array in Flex?
  • How to show images in Flex that are obtained in Bytearray type?

Any tutorials or code examples are helpful.

+4
source share
2 answers

I named the link below Nice Nice is excellent ...

  • How can I read images from the local system and convert them to an array of bytes in Flex?

Answer:

Loading a local file into a byte array in Flash Player 10 using Flex SDK 3.4+

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

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

+3
source

Please read the following site:

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

This can help.

+1
source

Source: https://habr.com/ru/post/1393496/


All Articles