Question about files in J2ME

Good Evening all!
First off, I am creating a Registry web site for vintage BMW's (02 Series) and I have considered creating a MIDlet J2ME to use along side the web site. I plan to use the app on cell phones, especially ones with cameras.
Now my question:
How can I find out where the picture files are located on the device?
PS. I am comfortable with J2SE, but am new to the J2ME scene.
Thanks!

np. In J2ME you can't access any phone-specific functions like the phonebook, sms inbox, dialing or things like this. So you also cant access and load image located in the "normal" file system of the phone. The only storage you can access with your MIDlet is the RMS, but this is MIDlet dependent (each MIDlet has its own RMS).
This is valid for J2ME. I dont know, whether there are some phone specific APIs, which let you do such things. But the use of them is not recommended, since your app then requires some specific phones, and will not run on every J2ME-enabled phone.
Kay

Similar Messages

  • Few questions about file sharing using airport

    I'm thinking about getting an AirPort Extreme, but I have a few questions:
    1- I (must) use Ubuntu Linux at work and I would like to be able to acess my home files hosted at AirPort remotly. Is this possible?
    2- Can I access my files on my iPhone using 3G connection (eg: download or stream mp3 files, photos, ...)?
    Thanks in advance!
    Marcio

    Yes.
    Yes. Use FileBrowser for iPad.

  • Question about file size when using "Export for Web"

    Hi!
    I created a .mov file and worked to get a great balance between file size and quality so that I could deliver it via the web and make it easier for end users to see the video on a slower connection.
    My question: When I use "Export for Web," my .mov file is converted into a very large .m4v file--more than double the size of the original file. I know that this export option is to optimize the file for a wide variety of users/internet speeds. Am I correct in guessing that the end size is not an issue? I would post the .mov file instead, but I really like the option of embedding into a html page along with the "click to play" option.
    Bottom line--is it better to post the smaller .mov file that i originally started with or to go ahead and link to the bigger .m4v file that was created with the "Export for Web" option?

    "Export for Web" is a feature of QuickTime Pro and it makes 4 files and the html page code for easy copy/paste Web page editing.
    The very first file is called a "reference movie" and it links to the other 3 files (56kbps, 900kbps and 1.5Mbps). It, and the page code, "read" the connection speed of the viewing hardware and "serve up" the correct file based on that connection speed.
    In nearly all cases the "Desktop" version would still be smaller in file size than the original source. The times the file would "increase" in file size would be when an already compressed was used as the source file. You can find out more about your source file by opening it in QuickTime Player and viewing the Movie Inspector window information.
    There are dozens of other html "tricks" that could be used if your source file is already compressed but you want a different display size:
    Page code to show "aspect" or scale="tofit". This code allows values "outside" of those found in the actual QuickTime file be used for the Web page display. A 320X240 QuickTime .mov file looks pretty good at double size (640X480) but the file size would still be that of the source file.
    "Poster Movie" is another html trick that loads the Web based file directly in the QuickTime Player application (bypassing Web page layout restrictions). These files are also known as "Presentation Movies".
    Another method is the QuickTime Media Link file (.qtl). These are simple text based files that are used as a "direct link". These use simple XML (Extensible Markup Language) and are easily created in any text editing application. The simple syntax has amazing control over a simple QuickTime .mov file. You can launch (and quit) the QuickTime Player, display at other dimensions and even embed "links" inside the display.
    Some of my files as examples:
    http://homepage.mac.com/kkirkster/Lemon_Trees/ a "Poster Movie" style.
    http://homepage.mac.com/kkirkster/.Public/RedneckTexasChristmas.qtl
    A QuickTime Media Link file. A tiny file should download to the viewing machine, launch QuickTime Player, present the movie and it even includes a "link" to my Web page.
    Edit: It appears you must now double click the .qtl download to launch QuickTime.

  • Question about File upload functionality in Weblogic

    Hi,
        We're currently trying to deploy a web application on the weblogic 12c server (via war file). And the app needs to upload a text file onto the a temperary directory within weblogic server. And on the web page side, we use JQuery File upload plugin.
        My question is, on the file receiver side, does weblogic provide any tools to receive the uploaded file and store it?
    Thanks very much in advance.

    Hi,
    Before setting the string or xstring to server->response->set_cdata (string) or server->response->set_data (xstring) try this:
    CONCATENATE 'attachment;filename=' lv_filename '.xml'  INTO lv_string.
    * Setting the filename by default
      server->response->set_header_field( name  = 'Content-Disposition'
                                          value = lv_string ).
    Hope this helps.
    Regards,
    Abhinav

  • QUESTION ABOUT FILES

    I want to delete an entry from a file and i'm trying not to load everything into memory at once.
    Now, what i intend doing is, as i read from the file with the data (joe.txt), if the line read from joe.txt isn't what i want to delete, i want to write that information to another file (say joe1.txt). so at the end of the day, joe1.txt will contain everything in joe.txt without the information i deleted.
    After all this is done, i want to change the fileName joe1.txt to joe.txt.
    CAN THIS BE DONE or if anybody can think of a better way of doing this without loading all information into memory.
    Thanks a lot

    The previous post about Java not being able to rename a file is incorrect File.renameTo(File) exists. Of course what you're asking can be done. I suspect you wish to remove data from a file. Look at the RandomAccessFile class:
    http://java.sun.com/j2se/1.5.0/docs/api/java/io/RandomAccessFile.html

  • Odd Question about file extensions

    Hello, I have a strange question that I cannot seem to fix on my own.
    The other week I was messing around in my Utilities folder and I was clicking on some of the applications contained in that folder.
    When I closed out some of the programs that I had opened I noticed that all the files on my computer now have a suffix at the end of their names. Everything.
    So before an application would say, TechTool Pro 4 it now says TechTool Pro 4.app
    TextEdit.app, etc etc
    I know this is a minor thing but I would like to find a way to remove this suffix that I inadvertently applied to everything on my laptop.
    Thanks for the help

    See if this helps. Go to Finder choose Preferences then click Advanced. See if the *Show all file extensions* box is checked. If it is uncheck it.

  • Question about File Descripters

    I am new to Java so forgive my ignorance...
    I was wondering that why this FileDescriptor class is all about?? anyone give me any example(easy)
    I am new.. but don't worry.. i know java io streams well...
    I will appreciate you help!!
    MOIN.

    Hi!
    As long as I know, the main use of a FileDescriptor is to ensure the flushing of file buffers to disk by using the sync() method.
    It is, if you have a FileOutputStream (or any stream connected to it) you cannot be sure that calling the flush() method will flush O.S. buffers to disk. The only way to do that is by means of:
    FileOutputStream out = new FileOutputStream( "xxx.yyy" );
    .... // write here your data
    // The following only flushes FileOutputStream buffers (if any)
    out.flush();
    // Try to flush O.S. buffers
    out.getFD().sync();Take a look at "JAVA I/O" by E. R. Harold for more info.
    Bye.

  • Quick Question about Files Menu / F8

    Until about a week ago, when I pressed F8 Dreamweaver brought up the files menu.  Now when I press this function key it brings up the Page Properties dialogue box.  Any ideas how to reset my F8 key?

    I am assuming that you mean Window > Workspace Layout > (Something different)  then Window > Workspace Layout > (back to original setting) which doesn't fix the problem.  Thanks for the suggestion though.  If you meant something different I would appreciate the help.
    BTW when I go to Dreamweaver > Keyboard Shortcuts...  the shortcuts are correct i.e. Files is listed as F8 and Page Properties is command J.

  • Question about file conversion in the sender file adapter

    Hi, all.
    I am trying to get the file adapter to parse a file. The message type is the following:
    JOB
       Msg  0..1
          Transaction  0 ... unbounded
             Data   0 ... 1
                f1 string
                f2 string
    How would you define the recordset name and recordset structure to produce the same structure in the converted xml. I tried:
    recordset name : Msg
    recordset structure : Data, *
    But the transaction is missing. I tried:
    recordset name: Msg
    recordset structure : Transaction, *
    Then the data is missing. Note that the actual data in f1, f2 ... are loaded successfully though.
    Thanks,
    Jonathan.

    Hi, Hareesh
    I agree. But that is how it is defined now by someone else. It is hard to change it as he defines the same structure on the receiving side. I didn't want to change the receiving structure as it touches the proxy code too. So I want to make something short and sweet.
    Basically the data looks like this:
    11,222
    55,666
    The result xml should be something like:
    <JOB>
      <Msg>
         <Transaction>
            <DATA>
               11
               222
            </DATA>
         </Transaction>
         <Transaction>
            <DATA>
              55
              666
            </DATA>
          </Transaction>
      </MSG>
    </JOB>
    I know either the DATA has no meaning and it's giving me a headache ... but that's how it's done and I don't want to rock the boat too much. There are lots of mapping that I have changed otherwise.
    Thanks,
    Jonathan.

  • Question about file previewing in Bridge CS3

    Does anyone know if it's possible to preview a Corel Painter file in Bridge? I'm running CS3 Bridge on a Windows XP machine. Currently, each Painter file is represented by the program's default icon. I'd love to actually see a real preview of each file!
    Thanks!

    crowedesigns wrote:
    The files I'm referring to end in the extension .RIF
    If it's not possible with the standard Bridge program, does anyone know of an addon that would allow this to work?
    When in Correl Paint use "save as" to save as jpeg or some other format supported in PhotoShop.  That is easier than trying to convert it outside of the program.
    You can keep the original .rif file in case you want to go back and work on it.

  • Question about File Content Conversion and parent-child relationships...

    Hello!
         I have read probably every blog, article and SAP Help document on the topic, but I am stuck on this one.  I am trying to convert a General Ledger flat file to an IDoc using the classic file --> IDoc scenario.  The setup is done and working, but the IDocs are formatted incorrectly and I believe at least part of the reason is how I am converting the file content. 
    The root of my problem is that the flat file has a parent-child relationship between the document header and the document item and I want to maintain that since the IDoc type (FIDCCP01) has the same structure in the BKPF and BSEG segments.
    Here is the flat (non-XML) file layout that is coming into the file adapter:
    FileHeader
    DocumentHeader
    DocumentItem
    DocumentHeader
    DocumentItem
    and so on (until the number of documents is complete
    I would really like the content to be converted so that the line items stay under their parent document headers like this:
    <FileHeader></FileHeader>
    <DocumentHeader>
       <ItemHeader>
       </ItemHeader>
    </DocumentHeader>
    <DocumentHeader>
       <ItemHeader>
      </ItemHeader>
    </DocumentHeader>
    But I keep getting this, where it lists the document headers first (one after another), and then all of the line items after the document headers like this:
    <FileHeader></FileHeader>
    <DocumentHeader></DocumentHeader>
    <DocumentHeader></DocumentHeader>
    <DocumentHeader></DocumentHeader>
    <ItemHeader></ItemHeader>
    Is is possible to maintain that parent-child relationship from the flat file and pass it over to the XML?
    Thanks,
    John

    Hi,
    Check some links on FCC.
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards,
    Phani
    Reward points if Helpful

  • Question about file preparation for print from Photoshop

    I need to figure out the best method for saving for print from Photoshop. Here are the things that are confusing me:
    Problem: When I create a design in Photoshop, I'm left with a few options on how to save my document. I would like to know which of the following is the best method:
    Method 1: create a pdf and embed the required fonts. This method worries me because I've read that certain fonts will not open on the recipients end due to restrictions set by the font maker. Is this something I should be concerned with or is embedding fonts the best route to take?
    Method 2: Convert all type to shapes. This method seems like the safest but I've read problems associated with this route as well. One website commented that having too much text converted to shapes can cause extremely long print times. Is this true?
    Another problem I've encountered with converting text to shapes is when I have a paragraph that has more than one text color...converting to shapes converts everything to just a single color. I would love to know a work around to this. Currently I have to create separate layers for the different text colors and try to manually align them...very time consuming. I know InDesign would be best for this type of thing, but Photoshop works just fine for me, asside from this one little thing).
    Method 3: Flatten my entire design (text and all) at 300dpi. Will my text look crisp flattening at this resolution?
    Thank you to anyone who can help clear this up for me. I read so much inconsistant information online that I don't know what to think anymore.

    Method 1: create a pdf and embed the required fonts. This method
    worries me because I've read that certain fonts will not open on the
    recipients end due to restrictions set by the font maker. Is this
    something I should be concerned with or is embedding fonts the best
    route to take?
    Always embed fonts, but then again, Photoshop can't until you save a format that can like PDF.  Some fonts do not allow you to do so. Outline the fonts or convert to shapes. Better yet, stop building text documents in Photoshop for print. It's generally a bad idea for many reasons like rejected jobs and lost money and time.
    Method
    2: Convert all type to shapes. This method seems like the safest but
    I've read problems associated with this route as well. One website
    commented that having too much text converted to shapes can cause
    extremely long print times. Is this true?
    Problems arise if you want someone to edit the files, but the same goes for a font that is missing.  As far as the print slow down times - it depends upon the RIP and how complex the file is.  Maybe or maybe not be an issue.  After all, text in Photoshop is using a font as a vector shape layer and not a font in the traditional sense.
    Another problem I've encountered
    with converting text to shapes is when I have a paragraph that has more
    than one text color...converting to shapes converts everything to just a
    single color. I would love to know a work around to this. Currently I
    have to create separate layers for the different text colors and try to
    manually align them...very time consuming. I know InDesign would be best
    for this type of thing, but Photoshop works just fine for me, asside
    from this one little thing).
    A paragraph?  Please attend a school that teaches you the basics of design in graphics. It will do you a great service to get more studies under your belt. Photoshop text is for graphical art not type setting.
    Method 3: Flatten my entire design (text and all)
    at 300dpi. Will my text look crisp flattening at this resolution?
    It depends upon the resolution of the output device. The higher the resolution of the output the worse your text will be.

  • Question about file defragment_cache ?

    Why there is a file named defragment_cache in my config directory?

    i have a problem with defragment_cache file
    its size is currently 400 Mo
    [-rw-------   1 sunmail  other    387256550 Apr  1 10:07 defragment_cache]
    and seems to indefinitely enlarge
    however the command
    # ./imsimta qm
    qm.maint> summarize give me this result
    Messages
    Channel Queued Size (Kb) Oldest
    tcp_xpedite 0 0.00
    tcp_wo 22 59.88 1 Apr, 09:45:08
    tcp_local 2 3.39 1 Apr, 09:45:12
    tcp_intranet 0 0.00
    reprocess 0 0.00
    process 0 0.00
    ims-ms 3 10426.42 30 Mar, 18:20:56
    defragment 7 12923.74 25 Mar, 09:38:24
    Totals 34 23413.44
    can you help me ?
    Thank's
    RS

  • Question about file type designations

    Hi,
    I use a program called Sound Studio to record meetings that I do. Lately, what's happening now when I download videos emailed by friends, the file extension says .mp4, but when I open them, Sound Studio opens up and I only hear the audio (because audio is all that program does). When I do the get info command, the instructions say open file with Sound Studio, rather than QuickTime.
    Is there some kind of setting somewhere, either in Snow Leopard or in Safari, where I can set that all downloaded video files are to be opened by Quicktime?
    Thanks.

    elgefe wrote:
    Hi,
    I use a program called Sound Studio to record meetings that I do. Lately, what's happening now when I download videos emailed by friends, the file extension says .mp4, but when I open them, Sound Studio opens up and I only hear the audio (because audio is all that program does). When I do the get info command, the instructions say open file with Sound Studio, rather than QuickTime.
    change the default app in that popup from sound studio to anything you want to use like Quicktime player and click 'change all".

  • Question about file uploads

    is having a file upload function on a web page a hard thing to do?
    i need to do this, but i do not know where to start...
    if anyone can help me out/shed some light on this for me that would be greatly appreciated!~!!!
    THANKS!

    No it is not particularly difficult; I let the user select a file on the client filesystem then upload to the server.
    The form ENCTYPE must be multipart/form-data:
    <FORM NAME="frmUpload" ENCTYPE="multipart/form-data" METHOD="POST" ACTION=...>
    Use:
    <INPUT TYPE="file" NAME="srcFile" SIZE="15" MAXLENGTH="40">
    In my servlet:
    verify:
    String contentType = request.getHeader("Content-Type");
    if (contentType.indexOf("multipart/form-data") < 0)     {
    ...handle error...
    String boundary = contentType.substring(contentType.indexOf("boundary=") + 9, contentType.length());
    private boolean TransferFile(ServletInputStream is, String srcFile,
    String destDir,String caseNo, String boundary, String errorPage,
    HttpServletRequest request, HttpServletResponse response) throws ServletException
    File pathName = new File(...);
    // If the target directory does not already exist then create it.
    if (!pathName.exists()) {
    pathName.mkdir();
    if (!pathName.exists()) {  // did mkdir work?
    ... do lots more checking ...
    boolean xferOK = false;
    try {
    FileOutputStream fout = new FileOutputStream(...);
    byte[] nextBytes = null;
    byte[] currBytes = null;
    while ((nextBytes = ReadLine(is)) != null) {
    if (currBytes != null) {
    String snippet = "";
    if (nextBytes.length - 10 <= boundary.length())
    snippet = new String(nextBytes);
    if (snippet.indexOf(boundary) < 0)
    fout.write(currBytes, 0, currBytes.length);
    else
    fout.write(currBytes, 0, currBytes.length - 2);
    currBytes = nextBytes;
    fout.close();
    xferOK = true;
    catch (IOException ioe) {
    return xferOK;
    } // TransferFile()
    Hope this helps

Maybe you are looking for

  • Not able to see the documented goods movement

    Hi , The Problem is I cannot see the documents against the same combination of the order type and Plant for Ceratin period but can see the documented goods movements against the same orders for some other period.

  • Getting EWA report But in Grey Colour

    Hi,    Iam getting EWA with all details of my solution manager,But my doubt is In my before EWA session its showing with grey colour.Is it iam getting report correctly or not.or is it any problem of getting report or i have to change any settings for

  • Use of Sticky Notes with PDF

    how do you use sticky notes to edit a pdf file?

  • Flaming Pear Flood Plug in Photoshop CC on Windows

    So I'm trying the trial version. I have it correctly under my Cdrive,then program files, then Adobe and adobe photoshop CC then into Plug ins. Tried relaunching my photoshop.. didnt see it under filters. Went to Edit>Preferences>Plugins and ( as i wa

  • Apple Bluetooth Keyboard (no fsck?)

    I just bought an Apple Bluetooth Keyboard and find that I can no longer run /sbin/fsck -y when rebooting to repair the boot disk. Apparently the system doesn't load Bluetooth earlier enough in the boot process to use the keyboard for simple commands.