×

Discussion Board

Results 1 to 15 of 15
  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    23

    File system on S60 phones..

    I am writing an application to upload the pictures taken on S60 phones to the web. The pictures taken on the phone are saved in the phone memory under the /images/ folder, can someone tell me what is the exact path/folder of this image folder in the S60 phone file system? (for use in the application).

    Thanks!

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    12

    Re: File system on S60 phones..

    Images are placed in C:\Nokia\images and/or in E:\Nokia\images if MMC is present.
    have fun...

    Rayko Enz

    [url]www.sic-software.com[/url]

  3. #3
    Registered User
    Join Date
    Jun 2006
    Posts
    23

    Re: File system on S60 phones..

    thanks, would you think the following line is correct?

    iBitMap = new (ELeave) CFbsBitmap();
    iBitMap->Load(_L("c:\\Nokia\\images\\Satellite.jpg"));

    I am trying to create an bitmap for displaying. there is an image named "Satellite.jpg" under the "Images" directory on the phone memory.

  4. #4
    Registered User
    Join Date
    Apr 2005
    Location
    Barcelona
    Posts
    1,678

    Re: File system on S60 phones..

    You need to use the ICL (image conversion library) for this. Check the SDK for MMF ICL.

  5. #5
    Registered User
    Join Date
    Jun 2006
    Posts
    23

    Re: File system on S60 phones..

    Hi, what is wrong with these following lines?

    iBitMap = new (ELeave) CFbsBitmap();
    TInt x = iBitMap->Load(_L("c:\\Nokia\\images\\si_image.jpg"), 0);
    iEngineLog.WriteFormat(_L("CHTTPExampleEngine::GetPictureDescStringL(): iBitMap Load return = %d"), x);


    It compiles fine, but on phone HW the iBitMap->Load() always returns -25 (KErrEof), what is wrong? \

    thanks for your comments in advance!

  6. #6
    Registered User
    Join Date
    Apr 2005
    Location
    Barcelona
    Posts
    1,678

    Re: File system on S60 phones..

    CFbsBitmap supports *bitmaps*, as its name implies. You need to use the ICL if you need support of other formats.

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: File system on S60 phones..

    Quote Originally Posted by robbin123
    Hi, what is wrong with these following lines?
    iBitMap = new (ELeave) CFbsBitmap();
    TInt x = iBitMap->Load(_L("c:\\Nokia\\images\\si_image.jpg"), 0);
    For answering the question: ".jpg" is the wrong thing. CFbsBitmap::Load supports .mbm files.

  8. #8
    Registered User
    Join Date
    Jun 2006
    Posts
    23

    Re: File system on S60 phones..

    thanks for comments.

    I converted one jpg file into the .mbm format, and change the code to:

    iBitMap = new (ELeave) CFbsBitmap();
    TInt x = iBitMap->Load(_L("c:\\Nokia\\images\\Satellite.mbm"));

    when running the app on S60_2.1 based phone HW, i got error code -20 (KErrCorrupt) from the iBitMap->Load()....

    Does anyone know what is the reason for this error? If it is due to the file corruption, how can i have a not corrupted .mbm file? I am not implementing the image convertion part in my app yet, i just used the image convertion tool in Forum Nokia to change the jpg to mbm...

    Any comments?

  9. #9
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: File system on S60 phones..

    Quote Originally Posted by robbin123
    TInt x = iBitMap->Load(_L("c:\\Nokia\\images\\Satellite.mbm"));
    Can you open this file from the Gallery application or a file manager?

  10. #10
    Registered User
    Join Date
    Jun 2006
    Posts
    23

    Re: File system on S60 phones..

    Yes, i can see the file existing in that folder from FExplorer. However, i cant open the mbm file on phone device as a picture, since the mbm format is not supported..

    Sometimes i also receive the -25 (KErrEof) error. would you know what is the problem?

    thanks.

  11. #11
    Registered User
    Join Date
    Apr 2005
    Location
    Barcelona
    Posts
    1,678

    Re: File system on S60 phones..

    Try specifying the id of the image explicitely (see the corresponding mbg in \epoc32\include)

  12. #12
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: File system on S60 phones..

    Both FExplorer and Gallery can open .mbm-s. Exactly how have you created your .mbm? Actually I have some doubts if it is an .mbm or not...

    Anyway, since you want to open files actually taken by the Camera application, and they are .jpg-s indeed, you need CImageDecoder.
    Last edited by wizard_hu_; 2006-06-16 at 12:52.

  13. #13
    Registered User
    Join Date
    Jun 2006
    Posts
    23

    Re: File system on S60 phones..

    Hi PushL:

    I only tested my APP on phone HW, there is no EPOC32\Include folder on HW... What is the MBG file meant for?

    Hi Wizard_Hu:
    I utilized the ImageConverter.SIS file provided by the example to convert the jpg picture taken by the build-in carema to the mbm format picture, which i saved to the phone memory to be served as the input of the:
    iBitMap->Load(_L("c:\\Nokia\\images\\Satellite.mbm"));

    Do you see any problem of this? why (-20) or (-25) returned after the Load()?

    Thanks for comments from anyone!

  14. #14
    Regular Contributor
    Join Date
    May 2008
    Posts
    149

    Re: File system on S60 phones..

    This error -25 appeared to me once.

    It was because mbm file generated was corrupted, because I changed several times its configurations (bit depth) inside MBM's carbide editor.

    The solution was to delete mbm file from the target device or emulator mannually. And then to recompile and reinstall the application to the device or emulator.

    Hope this helps

  15. #15
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: File system on S60 phones..

    Quote Originally Posted by robbin123 View Post
    Hi PushL:

    I only tested my APP on phone HW, there is no EPOC32\Include folder on HW... What is the MBG file meant for?
    Hi,
    A mbg file contains an ID for each bitmap within the corresponding .mbm file.
    .mbg files are generated by the toolchain when creating the .mbm. These files are typically included by cpp and RSS files that uses bitmaps.
    You are generating these files when your application uses bitmaps

    As for the errors it is because your file is not updated with the changes that you would have made. Manually deleting the file from epoc32 space is one of the options so that a fresh file is generated when you build your project again.
    Maximus
    S60 Developer
    Impossible is nothing

Similar Threads

  1. How to set the name of downloaded file in S60?
    By phairote in forum Digital Rights Management & Content Downloading
    Replies: 1
    Last Post: 2006-01-31, 08:20
  2. How to set the name of downloaded file in S60?
    By phairote in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2006-01-26, 10:26
  3. Replies: 2
    Last Post: 2005-10-02, 13:41
  4. Nokia 6610 APIs support File System access
    By linhpham in forum Mobile Java General
    Replies: 3
    Last Post: 2003-07-31, 16:42

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×