My images should be cached so that they are not downloaded more than once.
They should only be updated if an image name is not currently stored locally.
How should an app cache images and use them locally without downloading again on BlackBerry?
Probably write your downloaded images to SDCard, then before redownload just check if the image is already present. However this could be not as simple as it may seem at a glance if you are new to file manipulation API on BlackBerry.
Related
Our Xamarin forms app supports both Android and IOS. This app uses a lot of png images on each and every screen.
We are looking for a better approach to deal with it. Whether to download a zip of png images and maintain them locally (or) download each png image on demand and cache it. It's ok if the application takes bit more time at the time of login. Could you please suggest.
There are instructions here as to how to upload files in Firebase. But the issue is how to resize images when we upload it in firebase from a webpage. I could not find any method in the Firebase API . And no need to paste any code here as well I think.
Shouldn't I try to resize it after I upload the image ? How to do that ?
There is no built-in way to resize an image in the Firebase Storage API. You will either need to resize it before uploading, or download the image in a server-script, resize it and then re-upload the resized image.
You can use firebase cloud function for this task.
I've written an module to resize image files uploaded into a specific folder
https://github.com/kriptontr/fireImgOptimizer
I want to download an image from a url, save that image to local storage, and then display the stored image in an Image View. Is there a shared PCL library that can do all of this? If not, what would be the best approach for this using Dependency Services in iOS and Android?
In the app i'm working on, an image is displayed to the user which is gotten from a website.
I want the app to have an option to save the image to gallery.
From what i figure, since the image is displayed on the screen (and hence, has already been 'downloaded' to the phone), i shouldn't have to download it again for saving it to the phone (essentially specifying the URL of the image on the website as the image's source).
Is there a way to get the get the source (path) of the image?
I wrote one app while ago, it was about testing downloading an image from the web and putting it into Image control. And what surprised me a lot - after first download an image I was able to turn off wifi and after that image was still showing. I think WP7 have quiet good cache or something and maybe if U ask second time about the same URL U'll receive temporary file from cache instead downloading it again...
I researched a bit and found out that once an image has been downloaded from a url, it isn't downloaded again and is retrieved from the cache automatically. So, that leaves my question answered.
You were correct kingsvid!
i wonder why when i save any jpg image from internet the EXIF data is gone or not saved?
i am developing a photo gallery website so i download sample photos from the net as testing, mostly from flickr.
i only download photos that have exif data, but once saved in my mac, the exif is removed or not saved. at first i thought my wordpress exif plugin is not working but when i check the exif locally in my mac, the exif data is not there.
that's because most operations done on an image will wipe the exif data
if you want to download the pictures from flicker while keeping the exif you will need to go (on the picture page) to Actions => All sizes => download original
if you do that you can keep the exif.
but for testing purposes what I do personally is to grap any picture from google image and than stamp the exif data using a stamping software myself. This way, I will know whether the data that I'm getting are correct or not.
BTW, I have just finished a week ago from developing a gallery website using wordpress for a client, so if you faced any problems specially in the exif part, feel free to ask