universalimageloader loading half url

46 Views Asked by At

I am using Universal Image loader for loading image from server but i am getting one issue while loading an image URL which contains ampersand (&). Its loading only before part of ampersand.

This universalimageloader version i am using

'com.nostra13.universalimageloader:universal-image-loader:1.9.4'

this is my code

mImageLoader = ImageLoader.getInstance();
imageOptions = new DisplayImageOptions.Builder()
            .showImageForEmptyUri(R.drawable.img_no_image_screen3)
            .showImageOnFail(R.drawable.img_no_image_screen3)
            .showImageOnLoading(R.drawable.img_no_image_screen3)
            .cacheInMemory(true)
            .build();
 mImageLoader.displayImage(productInfo.getProductImage(), 
 productImage, imageOptions, this )

this is my url which i want to load , but loading this url

this is perfectly loading other image URL only getting issue with above attacked URL. Can any tell me how to resolve this issue?

1

There are 1 best solutions below

0
Jakob On

Use Picasso:

Picasso.get().load("https://partycity3.scene7.com/is/image/PartyCity/_sq_?$_500x500_$&$product=PartyCity/816681_full").into(yourImageView);

Don't forget to add this

implementation 'com.squareup.picasso:picasso:2.71828'

to your Gradle.