PDA

View Full Version : Bind The Image From Oracle Db?


clickmaster
01-10-2007, 10:10 PM
Our issue is we are storing images in Oracale BloB field.

We are writing xml file from oracle and now we are stuck how we will show images in flex form. In simple image control. We are writing all this code in ActionScript2.0. Please help me !

I want to bind an image from xml webservice:
Image="{WebSrvRequest.lastResult.NewDataSet.EMP.PHOTO}"
Is that possible?


Here is my datagrid:
<mx:DataGrid y="38" id="ppiGrid" width="400" dataProvider="{WebSrvRequest.lastResult.NewDataSet.EMP.CODE}" horizontalCenter="-143.5" height="59">
<mx:columns>
<mx:DataGridColumn headerText="ITEM CODE" dataField="ITEMCODE" />
<mx:DataGridColumn dataField="image" headerText="Image" itemRenderer="mx.controls.Loader" />

</mx:columns>
</mx:DataGrid>

Thanks in Advance!

clickmaster
01-11-2007, 06:35 PM
I know I can use JpgEncoder.as class. Can someone has an example how I will use JPGEncoder class in actionscript thanks