0

I tried to load the image on ffimageloading:CachedImage from URL, few images which are of 5 MBs are not loading in Android Tablet.

Please suggest to me what should I do about the issue?

                  <ListView    
                       BackgroundColor="#171921"
                        HasUnevenRows="True"
                        HorizontalOptions="FillAndExpand"
                        ItemsSource="{Binding DisplayData.ImagesSASUrl}"
                        SelectionMode="None"
                        VerticalOptions="Start">
                        <ListView.ItemTemplate>
                            <DataTemplate x:DataType="x:String">
                                <ViewCell>
                                    <Grid>
                                        <ffimageloading:CachedImage
                                            Margin="10"
                                            Aspect="AspectFit"
                                            BitmapOptimizations="True"
                                            DownsampleToViewSize="True"
                                            HeightRequest="200"
                                            LoadingPlaceholder="imageloading.png"
                                            Source="{Binding .}" />
                                    </Grid>
                                </ViewCell>
                            </DataTemplate>
                        </ListView.ItemTemplate>
                    </ListView>
Pooja Rawat
  • 191
  • 1
  • 2
  • 13
  • Have you already tried to do it in your CSharp code behind? `await ImageService.Instance.LoadStream(token => photo.OpenReadAsync()) .DownSample(500, 500)` or added some retries? What error message do you see in your application output? Do smaller images load fine? – Saamer Mar 23 '22 at 04:59
  • images in Kbs are loading fine only for MBs image issue is coming, with adding tries I did but still no luck. I got error image once when Image didn't load for longer time – Pooja Rawat Mar 23 '22 at 05:07
  • Could you share what the error message is? – Saamer Mar 23 '22 at 05:56
  • I just got error img on ErrorPlaceholder="" on xaml but no error msg as such – Pooja Rawat Mar 23 '22 at 06:10
  • Try to provide a custom config in platform project , or use `CachedImage.Error` to figure out the error message , check https://github.com/luberda-molinet/FFImageLoading/issues/990 . – ColeX Mar 24 '22 at 05:50

0 Answers0