Save image to SD Card from a URL !

5 posts, 0 answers
  1. Maxim
    Maxim avatar
    2 posts
    Member since:
    Aug 2012

    Posted 29 Aug 2012 Link to this post

    I need same working button like in the link below for saving images from a url >
    http://android-er.blogspot.com/2010/07/save-file-to-sd-card.html
    Thanks.
  2. John Wahlen
    John Wahlen avatar
    4 posts
    Member since:
    Sep 2012

    Posted 30 Apr 2013 Link to this post

    I've been working on the same problem.  The biggest thing is you can save a file to the SD card but only text files.  The only way to do it currently is with a plugin but since Icenium doesn't allow custom plugins we are stuck.  Unless someone else has information that I'm missing. 
  3. Kristian D. Dimitrov
    Admin
    Kristian D. Dimitrov avatar
    68 posts

    Posted 01 May 2013 Link to this post

    Hi John,

     Saving images from a URL is possible using the Cordova File API's Filterable object. You can read more about it here. We prepared a small sample for downloading an image using FileTransfer here.

    Regards,
    Kristian D. Dimitrov
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Kendo UI Dojo.
  4. John Wahlen
    John Wahlen avatar
    4 posts
    Member since:
    Sep 2012

    Posted 01 May 2013 Link to this post

    How about saving a canvas image to a file.  This is where I'm having the issue. 
  5. Kristian D. Dimitrov
    Admin
    Kristian D. Dimitrov avatar
    68 posts

    Posted 06 May 2013 Link to this post

    Hi John,

    You can use this JavaScript canvas library. Their canvas object has ".toSVG()" method, which will return a string with the content you need for the file. Then you can use the Cordova File System API to create a file and write its content.

    All the best,
    Kristian D. Dimitrov
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Kendo UI Dojo.
Back to Top