June 2018
Beginner to intermediate
394 pages
9h 2m
English
As we keep learning and building software products, we try building performance-oriented mobile applications, instant reactions to user queries, and a lot more. To achieve something similar to this, sometimes we might want to download files directly to memory. If the file size is larger than the application's available memory, the application will break. The getBytes() method tries to handle this on its own, and it will set the maximum memory size to something that an app can handle. If the file size is more then the app's heap memory, then we should utilize other methods:
StorageReference schoolKidRef = storageRef.child("pictures/moni.jpg");final long ONE_MEGABYTE = 1024 * 1024;schoolKidRef.getBytes(ONE_MEGABYTE
Read now
Unlock full access