why don't u encode image into base64String in client side and store that string in server and to display again u can decode string into image in client side. Don't know this may solve your problem....
On Mon, Aug 10, 2009 at 11:42 PM, LDaneil <[email protected]> wrote: > > any one could help me ? > > > On Jul 30, 9:21 am, LDaneil <[email protected]> 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); > > > > } > > > > -- Regards, Preetham Hegde _______________________________________________ If you only have a hammer, you tend to see every problem as a nail. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

