Codenameone Cloudinary映像未显示在IOS调试版本上
我正在使用InteliJ制作一个代号为one的应用程序,我有一些cloudinary图片显示在模拟器上,但当我发送一个IOS调试版本时,这些图片不会显示出来 我去了这个链接并使用了相同的方法,但它不起作用。当我试图在调试版本上显示本地映像时,它显示了,但cloudinary映像没有显示,因此问题与cloudinary有关,而不是一般的映像 这是我的密码:Codenameone Cloudinary映像未显示在IOS调试版本上,codenameone,cloudinary,Codenameone,Cloudinary,我正在使用InteliJ制作一个代号为one的应用程序,我有一些cloudinary图片显示在模拟器上,但当我发送一个IOS调试版本时,这些图片不会显示出来 我去了这个链接并使用了相同的方法,但它不起作用。当我试图在调试版本上显示本地映像时,它显示了,但cloudinary映像没有显示,因此问题与cloudinary有关,而不是一般的映像 这是我的密码: Cloudinary cloudinary = new Cloudinary(ObjectUtils.asMap(
Cloudinary cloudinary = new Cloudinary(ObjectUtils.asMap(
"cloud_name", NAME,
"api_key", API_KEY,
"api_secret", API_SECRET));
cloudinary.config.privateCdn = false;
ArrayList labels = new ArrayList();
for (Object url : images) {
Image img2 = cloudinary.url()
.type("fetch") // Says we are fetching an image
.format("jpg") // We want it to be a jpg
.new Transformation().crop("fill") // We crop the image to fill the given width/height
.width(hi.getWidth())
.height(hi.getWidth())
)
.image(encImage, (String) url);
// Add the image to a label and place it on the form.
labels.add(img2);
}
for (Object img : labels) {
Image newImg = (Image) img;
allImgs.addItem(newImg);
}
ImageViewer imgViewer = new ImageViewer();
imgViewer.setImageList(allImgs);
同样,我在模拟器中没有收到任何错误消息,图像也显示了,但它们没有显示在IOS调试版本中。请提供帮助。cloudinary Web服务自最初推出以来可能发生了变化。我没有亲自使用过,所以我不确定。打开网络监视器,查看应用程序和cloudinary之间的流量。我假设会有一些错误允许我们跟踪这一点。过去,我在一个代号为One的应用程序中使用Cloudinary,使用Spring引导服务器作为代理来上传和下载图像:这个解决方案使代号为One的应用程序独立于对Cloudinary REST的更改,当然,它更安全,因为“api_密钥”和“api_机密”都在服务器上。我在这里发布了我的服务器代码,希望这能有所帮助: