A few questions , have you debugged and checked to see if there is any data coming back ? Is your image Base64Encoded , your code doesn't show the Java Base64 class ?
Usually if I am going to load an image that requires request parameters instead of a source location , I use a URLLoader.
Thankx for the reply . According to your queries....
during the debugging some data found in servletOutputStream object as
Though when I run the servlet only then the barcode is desplayed in
the browser ........but it is not back to flex application
when print it the flex application it shows like ÿØÿà
mx.controls.Alert.show( event.result.toString()); // it shows ÿØÿà
Please help me with any kind of solution..............
I don't doubt that the servlet is spitting it out. I just question where it is choking in the Flex code , and whether or not Base64 is needed since it isn't shown anywhere in the Java code ( even though that doesnt mean it isn't stored somewhere as Base64 ).
many many thankx for giving me the vital solutions................
I have solve my problem according to ur direction........i have done it in the following way......
String s =
I'm glad that it worked out for you. Sometimes , these little things get in the way when going from bytes->image and vice versa
If this response was helpful , please mark it as such.
I am currently working on software for student attendance. I use the flex / flash and php to create the software but I faced a problem barcode scanner, can not connect to the application to call the data from the database when students scan the barcode printed on their student card. Can you help me to make the script so that it can run on flex / flash and php. it makes me crazy for a week to seek a way out …. please help me: ( thanks,