Codenameone ImageDownloadService出现问题

Codenameone ImageDownloadService出现问题,codenameone,Codenameone,早些时候,我使用的是staticcreateImageToStorage()方法,它工作得很好,但是我无法按照我想要的方式进行缩放,所以我决定创建一个类实例并使用非静态方法。这是我的密码: Label myLabel = findMyLabel(); ImageDownloadService imgService = new ImageDownloadService(URL_PREFIX+"images/"+picPath, myLabel); imgService.setDownloadToS

早些时候,我使用的是static
createImageToStorage()
方法,它工作得很好,但是我无法按照我想要的方式进行缩放,所以我决定创建一个类实例并使用非静态方法。这是我的密码:

Label myLabel = findMyLabel();
ImageDownloadService imgService = new ImageDownloadService(URL_PREFIX+"images/"+picPath, myLabel);
imgService.setDownloadToStyles(true);
NetworkManager.getInstance().addToQueue(imgService);

图片没有加载,我调试
ReadResponse()
提供的
InputStream
时没有数据。我做错了什么?

它应该设置为样式的
bgImage
,因为
设置DownloadToStyles
。我建议您使用
urlmimage
,它在缩放行为方面设计得更好