FileConnection Package Anyone Know Max File Size or device dependent

Ive got a midp program that reads a few text files that are built into my jar file, by setting them up using .getResourceAsStream(filename);.
Unfortunately if the file is large the app will crash just wondering if the same limits will apply if I use fileconnection instead and if the limit is device dependent. This is for the SonyEricsson K750i mobile phone by the way.
Thanks for the help

import java.io.*;
public class LineTextLoader {
   InputStream is;
public LineTextLoader(String filename) throws NullPointerException {
     is = this.getClass().getResourceAsStream(filename);
public StringBuffer readLine1(int search_position) {
    char ch = 166;
    int counter = 0;
        StringBuffer line = new StringBuffer(600);
     try {
            while(ch != 10) {
                if(ch == '�') {
                    counter++;
                    if(counter > search_position + 1) {
                     return line;
               ch = (char) is.read();
                        line = line.append(ch);
   } catch (Exception e) {
        System.out.println("Line Text ERROR");
        return line;
public void Skip() {
    char ch = 166;
     try {
            while(ch != 10) {
               ch = (char) is.read();
   } catch (Exception e) {
public StringBuffer readLine2() {
    char ch = 166;
        StringBuffer line = new StringBuffer(600);
     try {
            while(ch != 10) {
               ch = (char) is.read();
                        line = line.append(ch);
   } catch (Exception e) {
        System.out.println("Line Text ERROR");
        return line;
}   That was the code for the text reader I am using the 2 read line methods because its used as a search system so I only return the part of the string I need for the search, returning the second bit only if necessary. Char 166 is a delimiter between fields in the file. Anyway thats not really that important basically I call this class using
LineTextLoader loader = new LineTextLoader("MyFile.txt");
and then run the readLine1(), readLine2() and skip() methods to find the part of text I want.
I think there is a physical limit with this method unfortunately unless you can see something else

Similar Messages

  • Does anyone know letterbox overlay size?

    I have 16:9 video that I am using subtitle buttons over in my tracks. On a 16:9 dvd player - the overlay look fine but on a 4:3 tv / player they dont line up.
    In the manual it says I need a seperate subtitle layer with a different overlay for it to work - I have tried resizing the overlay to compensate for the letterboxing - but it still doesnt work?
    Does anyone know the correct size I am supposed to make the new overlay for it to fit?

    Hi Nic,
    Sorry I havn't replied earlier, hope this still may help.
    To correctly make letterboxed overlays the easiest option is to anamorphasize your 16:9 overlay (make it 720x576 for Pal, 720x480 for ntsc). Pull it into Final Cut and set its format to anamorphic (right click on it in browser, choose format, tick anamorphic) then if you drop this clip onto a 4:3 sequence final Cut automatically makes it letterboxed for you, export and voila.
    However, dvd studio still messes this up and on some players (not all) the letterboxed overlays are not formatted correctly - I know this is a dvd studio error because I have used the same files in Scenarist and they work! on all players!
    I've told apple and my guess is they wont do anything...
    Pete

  • Max file size of input schedule

    Hello experts,
    We are using BPC 7.5 NW sp4
    I've created input schedule and it's size about 6MB. I tried to save this input schedule, but system returns error.
    Currently the biggest file I've managed to save is 2MB
    Does anybody know max allowed size of file for input schedules and reports? And How we can change this parameter
    Best regards,
    Evgen Chadiuk

    Hi Evgen,
    BPC doesn't handle upload of large files through the Excel interface very well. If you go into UJFS (in BW) and find the input schedules for your application, you should be able to upload the input schedule through that interface.
    A good way to "compress" reports and input schedules is to delete all data from them before saving. I don't know if this will work in your case, but maybe it's another option.
    Ethan

  • When making a photo book, my iPhoto freezes during uploading the book to the store after assembly.  I have attempted this 4 times now and I don't know what to do! I know the file size is massive due quantity of large images. How can I get past this?

    When making a photo book, my iPhoto freezes during uploading the book to the storey.  I have attempted this 4 times now and I don't know what to do! I know the file size is massive due quantity of large image files, but I don't want to reduce the image file size and compromise quality in the book. How can I get past this?
    My macbook air is os x 10.9, using iPhoto 11 9.5 (902.7).

    Try Old Toad's solution here:   See   Re: iphoto : upload impossible to print a book
    Try to boot into Safe Mode and order this way, or sign into a different user account and try to order as a different user.
    Léonie

  • Does anyone know the default size for 24 in. imac display?

    I inadverently changed the display size on my 24 inch imac. The font in the toolbar at the top of the desktop is larger than I want. Also, when I open windows in different applications, they open larger than the display and have to be downsized in order to see the entire window.
    Does anyone know the default size for this display? Or is there a different way to fix my issues?
    thanks in advance.

    Hi Napamike2: The default setting for the 24" is 1920X1200. If that doesn't get you back to the proper display, maybe you have accidentally activated "Zoom". To check go to System Preferences, Universal Access. Check that Zoom is turned off.
    Stedman

  • What is the max file size that a Adapter Engine [J2SE] can handle ?

    We are having a scenario where a 4 GB compressed file needs to be sent across without mapping, I'm trying to explore the possible options to tackle this scenario.
    Some of the options, we are considering :
    - Sending a file from one Adapter Engine [J2SE] to another Adapter Engine [J2SE] bypassing PI. Adapter Logs will be monitored. What is the maximum file size that can be then handled assuming a standard installation ?
    - What is the max file size that Adapter Engine [J2SE] can send through PI without mapping?
    Any help with the above options or with any other possible solutions to handle extremely large file transfers will be much appreciated.

    Hi,
    j2se is not a good option here
    if you have 4gb then you need a copy solution
    a) build an proxy that will just copy the file from sender dest to receiver
    b) build an adapter that will do the same as proxy)
    this way processing of this message will be controlled with SAP PI/XI
    it will be as quick as copy & paste of the 4gb file
    I did the a) for one of the flow for 300 mb and it works perfectly
    Regards,
    Michal Krawczyk

  • Automation in saving a image file with a specific max file size

    Hi everyone,
    I hope someone can help me by this.
    Background info:
    We got several image files every 2 weeks which should be edited and mainly reduced in size for web purpose. This work needs 1 work day for one man/woman to do, because he/she has to open the file save for web and then set the quality to a value were the file is nearly about 150-200 KB in size.
    The images are different, some have few colors, some have a lot of colors and there are also different in resolution. But they should not be reduced in resolution, only in quality. All other specs of the image should be kept 
    Is there any possible script, plug-in or similar which can do the same (Saving with a specific max. file size) in some automatic and faster way?
    Any help is really appreciated!
    Thanks in advance!
    Kind regards
    Packesel

    *push*
    Hi everyone,
    I still need help with this. Is there any tool (OS X) or script for Photoshop who can fulfill this (see title).
    ANY help is really appreciated!
    Thanks in advance.
    Regards
    Packesel

  • What is te max. file size for lightroom

    i have some very big files. lightroom says that the are to big to catalog. but what is the max. file size ?

    There is no MAX file size.
    As John points out, the limits are on the number of pixels, not file size

  • Max File size in UFS and ZFS

    Hi,
    Any one can share what is max file size can be created in Solaris 10 UFS and ZFS ?
    What will be max size file compression using tar,gz ?
    Regards
    Siva

    from 'man ufs':
    A sparse file  can have  a  logical  size  of one terabyte.
    However, the  actual amount of data that can be stored
    in  a  file  is  approximately  one  percent  less  than one
    terabyte because of file system overhead.
    As for ZFS, well, its a 128bit filesystem, and the maximum size of a file or directory is 2 ^64^ bytes, which i think is somewhere around 8 exabyte (i.e 8192 petabyte), even though my calculator gave up on calculating it.
    http://www.sun.com/software/solaris/ds/zfs.jsp
    .7/M.
    Edited by: abrante on Feb 28, 2011 7:31 AM
    fixed layout and 2 ^64^

  • Max File size in XI

    What is the Max file size can be use in XI

    Hello
    This  depends upon your hardware and sizing of the XI box. so it also  depends on how complex your mapping and whether you are using any BPM inside the scenario or not. I have come across where XI is used just to move the file of 1GB also.
    but this is thro various tech like message splitting by using BPM.
    so if you r sending the file of large size it surely brings XI down so it is adviseable  to read chunks of data into XI and process further.
    for message splitting you can use below links
    /people/claus.wallacher/blog/2006/06/29/message-splitting-using-the-graphical-mapping-tool  Message Splitting Using the Graphical Mapping Tool
    Sender File Adapter with file conversion  Multimapping
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    thank's
    Chetan

  • Max file size in OSX Tiger?

    I regularly backup my hard drive to my USB 2.x 80GB drive with Retrospect. As of the moment my backup file is 20GB's. Is there a max file size limit like there was in the old Mac os?
    Thanks,
    John

    This article may answer your question:
    http://docs.info.apple.com/article.html?artnum=25557
    However, why are you creating a 20 GB file? Why not do a duplicate from one volume to another?
    Mind you, you won't get booting as USB can't boot Mac OS X, but at least all the files will be there, and you won't suffer from an all your eggs in one basket issue, where if one file is corrupted the entire file needs to be recreated from scratch.

  • Max file size

    What (if any) is the max file size FMLE can make to serve from FMS? Do the profiles have any relation?
    Thanks in advance
    Matthew

    I think you misunderstand the concept of streaming.  FMS isn't reading from a file when it streams your video, it reads from your stream. This is dynamic - frames are pushed up to the FMS constantly.  As such there is no "size" limitation per se.  As long as you are streaming from FLME to the FMS the FMS will stream your data to people that connect to it.
    However if you plan to create a file and upload that to the FMS for video-on-demand (i.e. not a "live" stream) that may be a different story.  Not sure if there is a size limitation there.

  • Max file size OSB 11g can process

    Hi,
    What is the max file size OSB 11g can process? We want to do a POC that picks a file from FTP do some complex transformation and post to another FTP server.
    So in this scenario what can be the max file size OSB 11g can handle?
    Regards,
    Abdul

    Again, there is no fixed limit for message size JMS can handle. It depends on the Heap size available. But, In my experience JMS will reduce the practical limit much more than File/FTP transport. I have seen that you start getting a lot of OOM errors if you try to put very large messages on JMS.
    Also, if you are going to transform the payload after reading via FTP/File transport, then you will need to initialize the complete payload in memory which will restrict the maximum message size which can be processed properly.
    For large Files using Content Streaming is recommended but you can not access the streamed content within a message flow (hence no transformations).
    Another limiting factor is CPU utilization, doing complex transformations on large payload will consume a lot of CPU which will effect any other processes running on the same machine (could be another service instance on OSB itself).
    OSB is supposed to work with lightweight, stateless and fast processing. If you have very complex transformations, invest in an XML Appliance.
    If you need to transfer huge files, then use ODI.

  • Max file size OSB 11 can Process

    Hi,
    What is the max file size OSB 11g can process.
    Regards,
    Abdul

    In addition to providing additional detail, you should ask this question in the SOA Suite forum:
    SOA Suite

  • WRT350N USB Drive Max File Size?

    What is the max. file size for the FAT32 USB Drive when attached to a WRT350N?  When I try to transfer a 11.7 GB file to the Drive, the drive "disconnects" after 3.8GB has been transfered.  [Transfer status window shows 7.9 GB remaining to be transfered a the time of disconnect.]  I've tried both the Mapped Network drive and the FTP Sever approaches and get the same results every time.  All smaller files transfer to the WRT350N USB Drive successfully every time.  I using a Windows Vista Ultimate desktop (Wired connection) and the Router has 1.3.02 frimware.
    The symptoms tend to indicate that the max. file size is limited to 4GB?  Is this correct? 

    You will have to format your disk with the help of the WRT350N and after that you will have creat Share with same "Storage" tab on the linksys router.

Maybe you are looking for