Hi, There are many resources in internet. Anyway i will try to help u...
On Wed, Aug 12, 2009 at 7:06 AM, LDaneil <[email protected]> wrote: > > hi, Preetham Hegde. Thanks for your reply. I think the way you > suggested may will solve my problem, but I still don't know how to > write the code, can you give show me some coding? especially for the > server side to receive the byte code and to recreate the image. Please > use VB code, because I am using aspx.net to write the server side > code. > > Thank you in advance. > > > > On Aug 11, 1:29 pm, Preetham Hegde <[email protected]> wrote: > > 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. > > > > -- Regards, Preetham Hegde www.dizzianer.com _______________________________________________ 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 -~----------~----~----~----~------~----~------~--~---

