i have created an image from the image url(lcdui image)
HttpConnection c = (HttpConnection) Connector.open(imageurl);
int len = (int)c.getLength();
if (len > 0)
{
is = c.openDataInputStream();
byte[] data = new byte[len];
is.readFully(data);
img = Image.createImage(data, 0, len);
i want to set height and width to this?and i want to display
You can’t set width and height to Image. But, you can resize the image using the below method.