any one could help me ?

On Jul 30, 9:21 am, LDaneil <leilin4...@hotmail.com> wrote:
> Hi,all. I want tosendaimagetoserversideusingHTTPService,  I amusingASP.NET 
> forserverside coding. I don't know how to writeserver
> side code to receive theimagesent as a byteArray, and I am also not
> sure if my client side code is correct or not。is there any IT PRO who
> could help me ? Thanks in advance.
>
> client side code:
>
> private function browseImageClicked():void
>  {
>  var f:FileFilter = new FileFilter("PNG","*.png");
> fileReference.browse([f]);
> fileReference.addEventListener(Event.SELECT,onFileSelect);
> fileReference.addEventListener(Event.COMPLETE,onFileComplete);
>  }
>  private function onFileSelect(event:Event):void
>  {
>         fileReference.load();
>  }
>  private function onFileComplete(event:Event):void
>  {
>  var byArray:ByteArray = fileReference.data;
> varimage:Image= newImage();image.source=byArray;
> var bmpData:BitmapData;
> bmpData = new BitmapData(48, 48, true, 0x00ffffff);
>  bmpData.draw(image);
>
> var imageData:ByteArray = sdf.encode(bmpData);
> var encoder : Base64Encoder = new Base64Encoder();
> encoder.encodeBytes(imageData);
> var params:Object = { image_data: encoder.flush() };
>  imageSend.send(params);
>
>  }

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_india@googlegroups.com
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to