Hello everyone.

I'm back with another question, but this time its about images.

I saved a bunch of image files(all  jpeg,jpg) in the bank, there they
become binary. when i get them from the bank i change them into images
again and take them to flex. at least that's what it was suposed to
happen, but it doesen't seem to work. altough it does seem to be sending
something to the Flex App it doese'nt shows nothing to the user :(

here's a sample of my MXML:

public function PegaImg():void{
                 Grid_Amostra.selectedIndex = -1;
                 Grid_Amostra.dataProvider =
dadosGrid.lastResult.SelectItem;
                 ArrayTree.removeAll();
                 for each(var campo:Object in Grid_Amostra.dataProvider){
                     var u:URLRequest = new
URLRequest('pegaitem.asp?cd_img='+campo.Cd_Img);
                     Carrega.load(u);

                     ArrayTree.addItem({display:"", Desc:campo.Desc,
Dt_validade:campo.Dt_validade, Cd_Item:campo.Cd_Item,
Cd_Img:campo.Cd_Img})
                     //ArrayTree.getItemAt(Cont).display = ;
                     Cont++;
                 }
                 Grid_Amostra.dataProvider = ArrayTree;
             }

public function CompleteEventHandler(evento:Event):void{
                 ArrayTree.getItemAt(Cont).display = Carrega;
             }

i Saw some topics telling to use ByteArray but even after looking in the
other topics and the Livedocs. i still cant get how this thing works and
how is it gona help me

any help would be apreciated


Reply via email to