Skip to Content
0
Former Member
Dec 07, 2006 at 11:17 AM

Fetching Images Via JAVA API

23 Views

Hi,

I am trying to fetch images via Java Api.

Please look at the code below:

A2iValueArray imgs1 = null;
for(int y=0; y<rs1.GetRecordCount(); y++){
	imgs1 = rs1.GetValueAt(y,"Product_Image").GetValueArray();
}

It is throwing me a Class cast exception.

I also tried

imgs1 = (A2iValueArray) rs1.GetValueAt(y,"Product_Image").GetValueArray();

but to no avail...

I am using MDM Sp04..

Please guide me...