1. #1
    Sencha User =NR='s Avatar
    Join Date
    Mar 2013
    Location
    Singapore
    Posts
    102
    Answers
    2
    Vote Rating
    -1
    =NR= has a little shameless behaviour in the past

      0  

    Default Unanswered: how to load images file from hard disk

    Unanswered: how to load images file from hard disk


    Hi all,

    Problem: is there anyone can help direct me on how to load images file from device hard disk to the app ? preferably its a step by step or not hard to understand tutorial / article ,best practice most welcomed

    Cause: i'm currently building an app with a lot of images, thumbnails and when user click on the image it will go to full screen mode on carousel.
    The problem is that currently my logic will be somwhat using phonegap to locate the images and load it wholly (putting it on memory) and pass it to the view where img component will bind with it through the src config option. (its legacy logic)

    as there is a lot of images it will really burden the memory and after going through view images on carousel the app will crashed,

    and even if it survive the carousel mode after changing view the memory used for loading those image will not be released although there's already statement to release/destroy the component (get appropriate child component and call its destroy method)


    Thanks in advance


    Best Regards,

  2. #2
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    1,149
    Answers
    132
    Vote Rating
    99
    jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice

      0  

    Default


    This extension should help you out. You can load the images and use the DataUrls:
    https://market.sencha.com/extensions/file-uploading-component-for-sencha-touch

    http://mindsaur.com/demo/fileupload/

  3. #3
    Sencha User =NR='s Avatar
    Join Date
    Mar 2013
    Location
    Singapore
    Posts
    102
    Answers
    2
    Vote Rating
    -1
    =NR= has a little shameless behaviour in the past

      0  

    Default


    Hi jerome76,

    thanks for the reply,

    the thing is i need to create a logic where i can go local disk,
    locate all the files based on name (folder will be structured)
    and then save that file location on to sql lite and when need i just need to refer to that record get the file location from the field and set it as "src" value of image component..


    *in short i need to be able to save a lot of images to the device, locate each file location and sace the location for future reference and when needed able to load those images (wihout the need of putting the whole image to device memory )

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi