Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User monima's Avatar
    Join Date
    Mar 2011
    Posts
    8
    Hi all,
    I want to save an image in mobile memory. In J2ME it is possible, but is it possible in web apps using JavaScript. If it is possible can anybody help me please.

  2. #2
    Nokia Developer Champion somnathbanik's Avatar
    Join Date
    Dec 2008
    Posts
    2,272
    I have not tried downloading images, but I tried to download audio files and it worked for me.
    Create a HTML page and put the link of the file in <a></a> tag.

  3. #3
    Nokia Developer Moderator isalento's Avatar
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    831
    Hi,

    I don't know a JavaScript solution, but you can do it in server side.

    So what do you need to do is serve the image as a attachment.
    Just use <a href="yourdomain.com/getimage.php>get bg image</a> to initiate download as somnathbanik suggested.

    When link is clicked a special page is shown inside browser telling you download details. After the user is done with save image flow, she/he can return to widget by pressing the back button.

    PHP:
    <?php

    header('HTTP/1.0 200 Ok');
    header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
    header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); //
    header('Content-type: image/jpeg');
    header('Content-Disposition: attachment; filename="leaves.jpg"');

    readfile('leaves.jpg');

    ?>

  4. #4
    Registered User ranjithd's Avatar
    Join Date
    Jun 2011
    Posts
    2
    Hi all,
    How to possible save image in phone memory in J2ME?.I am stuck this concept.Please help me..

Similar Threads

  1. How to save Image to phone memory using J2me?
    By maniohile in forum Mobile Java General
    Replies: 2
    Last Post: 2011-04-14, 14:20
  2. How to display a part of an Image from Web
    By somnathbanik in forum Symbian C++
    Replies: 11
    Last Post: 2009-07-26, 14:44
  3. How to send an sms from server to user using JavaScript ?
    By kialeng in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2009-04-09, 02:48
  4. how to send an image from phone memory using HTTPClient post example
    By pallavi08 in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2008-12-03, 10:30
  5. desperately needs help on how to save an image in the mobile device memory
    By daregazi in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2008-06-23, 12:37

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved