Read File Format Issue

Hi,
I have an input file as below:
12020090707000000000000000000000005|C320|FAI|20000140|FFS000425|10|0
12020090707000000000000000000000005|C320|FAI|20000140|FFS000425|40|0|1234567890
12020090707000000000000000000000006|C320|FAI|20000141|FFS000426|10|0
12020090707000000000000000000000006|C320|FAI|20000141|FFS000426|50|0|0987654321
I wish to read it using file adapter, but ignore those records that has no "|" operator at the end. In case above, it will be 1st and 3rd row. can i handle this situation in my input XSD?
Regards,
Nikhil

Nikhil,
You can always manually put "|" in Delimited By drop-down in file/ftp adapter. this will work and you can see that in the preview in the further steps in the wizard.
Hope that will help

Similar Messages

  • UTL FILE OUTPUT FILE FORMAT ISSUE ON ORACLE 11G

    how to format util file output align with column value with proper format.
    set serveroutput on
    DECLARE
       CURSOR h1
       IS
       select  'TOTAL_ACCOUNT_REJECTS' as TOTAL_ACCOUNT_REJECTS   ,
         'PC' as  PC ,
          'RT' as  RT,
          'SERIAL' as  SERIAL
          from dual;
       --    l_app_nm              := RTRIM( TRIM( l_line ), CHR(13) );
       CURSOR c1
       IS
      SELECT
      company  ,
    user,
    app,
    account
            FROM account_auth
           WHERE ROWNUM < = 5;
       lc_file_handle        UTL_FILE.file_type;
       lc_file_dir           VARCHAR2 (100);
       lc_file_name          VARCHAR2 (50);
       gov_005_payment_rec   VARCHAR2 (1000);
    BEGIN
       lc_file_dir := 'OUTB';
       lc_file_name := 'test.txt';
       lc_file_handle := UTL_FILE.fopen (lc_file_dir, lc_file_name, 'W',1024);
      FOR i IN h1
       LOOP
          gov_005_payment_rec :=
                i.TOTAL_ACCOUNT_REJECTS
             ||' '
             || i.PC
             || ' '
             || i.RT
             || ' '
             || i.SERIAL;
          UTL_FILE.put_line (lc_file_handle, gov_005_payment_rec);
       END LOOP;
       FOR i IN c1
       LOOP
          gov_005_payment_rec :=
                 i.company
             ||' '
             || i.user
             ||' '
             || i.app
             ||' '
             || i.account;
          UTL_FILE.put_line (lc_file_handle, gov_005_payment_rec);
       END LOOP;
    EXCEPTION
    WHEN UTL_FILE.INVALID_PATH        THEN DBMS_OUTPUT.PUT_LINE('Invalid
    path!');
      WHEN UTL_FILE.INVALID_MODE        THEN DBMS_OUTPUT.PUT_LINE('Invalid
    mode!');
      WHEN UTL_FILE.INVALID_OPERATION   THEN DBMS_OUTPUT.PUT_LINE('Invalid
    operation!');
      WHEN OTHERS
    RAISE;
    END ;
    OUTPUT :  issue with file format
    TOTAL_ACCOUNT_REJECTS PC RT SERIAL
    &&&&&846  000000000000 APPLICATION123 20570
    &&&&284  000000000000 APPLICATION133 20570
    &&&2&&846  000000000000 APPLICATION163 20570
    EXPECTED output   ==> please advise me , how to create proper formatted output file using utl_file?  thanks in advance.
    TOTAL_ACCOUNT_REJECTS      PC                         RT                            SERIAL
    &&&&&846                                 000000000000        APPLICATION123       20570
    &&&&284                                  000000000000         APPLICATION133       20570
    &&&2&&846                              000000000000         APPLICATION163       20570

    Example of creating a fixed width format file for a dynamically provided query, using the DBMS_SQL package...
    As SYS user:
    CREATE OR REPLACE DIRECTORY TEST_DIR AS '\tmp\myfiles'
    GRANT READ, WRITE ON DIRECTORY TEST_DIR TO myuser
    As myuser:
    CREATE OR REPLACE PROCEDURE run_query(p_sql IN VARCHAR2
                                         ,p_dir IN VARCHAR2
                                         ,p_header_file IN VARCHAR2
                                         ,p_data_file IN VARCHAR2 := NULL) IS
      v_finaltxt  VARCHAR2(4000);
      v_v_val     VARCHAR2(4000);
      v_n_val     NUMBER;
      v_d_val     DATE;
      v_ret       NUMBER;
      c           NUMBER;
      d           NUMBER;
      col_cnt     INTEGER;
      f           BOOLEAN;
      rec_tab     DBMS_SQL.DESC_TAB;
      col_num     NUMBER;
      v_fh        UTL_FILE.FILE_TYPE;
      v_samefile  BOOLEAN := (NVL(p_data_file,p_header_file) = p_header_file);
    BEGIN
      c := DBMS_SQL.OPEN_CURSOR;
      DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
      d := DBMS_SQL.EXECUTE(c);
      DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
      FOR j in 1..col_cnt
      LOOP
        CASE rec_tab(j).col_type
          WHEN 1 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
          WHEN 2 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val);
          WHEN 12 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val);
        ELSE
          DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
        END CASE;
      END LOOP;
      -- This part outputs the HEADER
      v_fh := UTL_FILE.FOPEN(upper(p_dir),p_header_file,'w',32767);
      FOR j in 1..col_cnt
      LOOP
        CASE rec_tab(j).col_type
          WHEN 1 THEN v_finaltxt := v_finaltxt||rpad(lower(rec_tab(j).col_name),rec_tab(j).col_max_len,' ');
          WHEN 2 THEN v_finaltxt := v_finaltxt||rpad(lower(rec_tab(j).col_name),rec_tab(j).col_max_len,' ');
          WHEN 12 THEN v_finaltxt := v_finaltxt||rpad(lower(rec_tab(j).col_name),greatest(19,length(rec_tab(j).col_name)),' ');
        END CASE;
      END LOOP;
      UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      IF NOT v_samefile THEN
        UTL_FILE.FCLOSE(v_fh);
      END IF;
      -- This part outputs the DATA
      IF NOT v_samefile THEN
        v_fh := UTL_FILE.FOPEN(upper(p_dir),p_data_file,'w',32767);
      END IF;
      LOOP
        v_ret := DBMS_SQL.FETCH_ROWS(c);
        EXIT WHEN v_ret = 0;
        v_finaltxt := NULL;
        FOR j in 1..col_cnt
        LOOP
          CASE rec_tab(j).col_type
            WHEN 1 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
                        v_finaltxt := v_finaltxt||rpad(nvl(v_v_val,' '),rec_tab(j).col_max_len,' ');
            WHEN 2 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_n_val);
                        v_finaltxt := v_finaltxt||rpad(nvl(to_char(v_n_val,'fm99999999999999999999999999999999999999'),' '),rec_tab(j).col_max_len,' ');
            WHEN 12 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_d_val);
                        v_finaltxt := v_finaltxt||rpad(nvl(to_char(v_d_val,'DD/MM/YYYY HH24:MI:SS'),' '),greatest(19,length(rec_tab(j).col_name)),' ');
          END CASE;
        END LOOP;
        UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      END LOOP;
      UTL_FILE.FCLOSE(v_fh);
      DBMS_SQL.CLOSE_CURSOR(c);
    END;
    This allows for the header row and the data to be written to seperate files if required.
    e.g.
    SQL> exec run_query('select * from emp','TEST_DIR','output.txt');
    PL/SQL procedure successfully completed.
    Output.csv file contains:
    empno                 ename     job      mgr                   hiredate           sal                   comm                  deptno               
    7369                  SMITH     CLERK    7902                  17/12/1980 00:00:00800                                         20                   
    7499                  ALLEN     SALESMAN 7698                  20/02/1981 00:00:001600                  300                   30                   
    7521                  WARD      SALESMAN 7698                  22/02/1981 00:00:001250                  500                   30                   
    7566                  JONES     MANAGER  7839                  02/04/1981 00:00:002975                                        20                   
    7654                  MARTIN    SALESMAN 7698                  28/09/1981 00:00:001250                  1400                  30                   
    7698                  BLAKE     MANAGER  7839                  01/05/1981 00:00:002850                                        30                   
    7782                  CLARK     MANAGER  7839                  09/06/1981 00:00:002450                                        10                   
    7788                  SCOTT     ANALYST  7566                  19/04/1987 00:00:003000                                        20                   
    7839                  KING      PRESIDENT                      17/11/1981 00:00:005000                                        10                   
    7844                  TURNER    SALESMAN 7698                  08/09/1981 00:00:001500                  0                     30                   
    7876                  ADAMS     CLERK    7788                  23/05/1987 00:00:001100                                        20                   
    7900                  JAMES     CLERK    7698                  03/12/1981 00:00:00950                                         30                   
    7902                  FORD      ANALYST  7566                  03/12/1981 00:00:003000                                        20                   
    7934                  MILLER    CLERK    7782                  23/01/1982 00:00:001300                                        10                   
    The procedure allows for the header and data to go to seperate files if required.  Just specifying the "header" filename will put the header and data in the one file.
    Adapt to output different datatypes and styles are required (this is currently coded for VARCHAR2, NUMBER and DATE)

  • File Format Issues

    Frequently asked questions about saving and converting file formats.

    GIF vs. GIF vs. GIF (etc.)
    Q: I see several different ways to save a GIF file from Photoshop. What's the difference between them?
    A: You can select "CompuServe GIF" format when you choose Save, Save As or Save a Copy (asuming you have a flattened, RGB image) from Photoshop's File menu. That's the traditional way of saving GIFs, and has been available in Photoshop going back several versions. It has limited options and saves a file in GIG87 format.
    B. You can choose "Export > GIF89a Export" from the file menu. This presents you with a few more options and (as the name suggests) saves out a GIF89a format file.
    C. You can choose "Save For Web" from Photoshop 5.5's File menu, and choose GIF from the Optimized File Format menu in the Settings group. You will have many different options to minimize your file size while viewing the resulting image to alow you to maintain image quality. This is usually the best way to save a GIF from within Photoshop. This will generate a file in GIF89a format.
    D. If you want to take advantage of even more advanced web features (rollovers, slicing, animation, etc.) for your GIF, switch over to ImageReady 2.0 and save your optimized image there. You will find similar options as in Photoshop's Save For Web dialog, but ImageReady adds additional features that allow you to slice or animate an image, or create rollovers.

  • Flat File Format Issue

    Hi All,
    I have to load a flat file of the type Text (Tab Delimited) (*.TXT) in BI. How can i do that.
    It is coming from an external system and hence i cannot have the format change. What should i do in
    my flat file data source to be able to upload it
    Thanks
    Rashmi.

    Hi Rashmi,
            There can be two formats of flat file uploading ...
    one is ascii which means fixed length format .... in which there is no need of delimitation .... according to fixed length each value will go into corresponding field...
    the other is the csv (comma seperate value) which the fields are seperated by a commaa...
    as u are saying the input file is tab delimited u need to change the file format into any of the above types before u load into bi...
    for if u are using a process chain u has to manually convert this file format and then load in the application server .
    for if u are loading manaully u can edit the file to this format and load from ur work station.......
    Regards
    vamsi
    Edited by: vamsi talluri on Feb 6, 2009 5:36 AM

  • BO 4.0 save as csv file format issue

    Hi All,
    We are using BO 4.0 Webi for reporting on SAP BW 7.3 system. Some of our reports have to be scheduled to bring the output in CSV file format. When I schedule the report in CSV format, the final output has data in two sets. The first set has the list of columns which I have selected in my report. Starting on the next row I get to see the second set of data with all the objects selected in the query panel including the detail objects.
    We only need the data for the columns which is selected in the report, but it is bringing the dump from all the objects in the dataprovider.
    Can anyone tell me how to get rid of the second set of data in the same csv file ?
    Thanks,
    Prasad

    Hi,
    CSV format is reserved for 'data only' dataprovider dumps. it exports the entire webi microcube (query results)
    You don't get that option when going 'save as' - which preserves the report formatting - in which case you should consider .xls
    regards,
    H

  • File formatting issues when saving PDF as PPTX in Acrobat XI Pro

    Hi guys,
    I have some issues when I'm saving my PDF (initially comming from InDesign) as PPTX. The format is suddenly changing, leaving a blank zone, and some of the pages are rotated.
    Is it a problem comming from the Indesign or from the Acrobat options itself? I have already tried changing the chekboxes in the option box when I'm saving, but nothing worked.
    If someone has an idea how to fix that, i would be very grateful! Thanks in advance

    Which dot version of Acrobat XI are you currently using in your export?  Is the PDF file tagged?  If not, then you may want to tag the PDF file before exporting it.

  • Adobe Acrobat 7.0 Standard Combine Files Format Issue

    I have an issue combining multiple PDF files into one. Every week we create a sales deck that is made of up 30 or so files. most of the files are created from a program called Cognos Impromptu using the Cognos PDF Server 5.0.44.0. According to the document properties, it creates a PDF Version: 1.3(Acrobat 4.x). I can not change this conversion setting.
    I then convert several word documents and Excel documents into PDF files separately and then combine them all together. These individual files are created using Acrobat Distiller 7.0.5 (Windows) and creates a PDF Version: 1.4(Acrobat 5.x).
    The problem happens when I throw one of the files created from Cognos into the mix. It causes the formatting on the PDF files created from word and excel to become "ugly". Random letters just drop off from the report and make it unreadable. Pages created from the cognos reports are always ok. If I try the combine excluding the cognos converted PDF files, it works perfectly.
    This happened when we got new computers last week. By some stroke of luck, I was able to fix it on my computer and I don't have the issue any more. However, I am trying to fix it on my coworkers computer and Im not having any luck. Our settings match perfectly in Acrobat, Distiller, and PDF Maker installed in Excel and Word. I don't even know what I did to fix mine.
    If anyone has any suggestions, I would greatly appreciate it. We are both running Windows XP and have Adobe Acrobat 7.0 Standard edtion.
    Thank you

    Bill,
    thanks for the reply. I think i got it. When they gave us the new computers, they installed a copy of acrobat without some of the latest updates. update 7.0.5,.7,.8, and .9 were missing from our programs. I also noticed that her create to PDF setting for microsoft office was set to standard but the distiller was using high quality. i think fixing the combination of the two may have fixed it. I am going to try and create a full report and see. I will post back and let you know if the issue is gone.
    thanks again.

  • Excel 2007 csv file formatting issue

    Our users create .csv files for upload to SAP. Their habit is to include a number of blank lines in excel to make it more readable.
    In Excel 2003, blank lines were handled as, literally, blank lines, and opening in a text editor shows exactly that, a blank line (with a CR-LF character to terminate the row).
    In Excel 2007 however, the blank line consists of a number of commas equal to the no. of columns, followed by the CR-LF termination. Hope that makes sense.
    While the 2003-generated .CSVs are fine, the 2007 versions cause SAP to throw an exception  ("Session never created from RFBIBL00") and the upload fails. The question therefore is, has anyone ever come across anything similar, or is anyone aware of any remediation that might be possible? Haven't been able to find any documentation on this Excel 2003-2007 change sonot able to address the issue through Excel config.
    Thanks!
    Duncan

    Hello
    Please refer to the consulting note 76016 which will provide information on the performance of the standard program
    RFBIBL00.
    Regards.

  • PDF File Format Issue

    I have a PC in which I have InDesign CS4 installed.  I am trying to create a book cover using a preset template that is saved in a pdf format.  How do I get this program to open this type of file?

    Sorry, InDesign has never opened PDF files. You can choose File > Place. You could put the template on its own layer and reduce its opacity so you could use it as a template for your project.

  • Acrobat 10.1.3 update file format issues

    I have recently updated my Acrobat Pro to 10.1.3. I run a music notation software called Finale which I "Save as Adobe PDF" to create my pdfs and get them ready for publishing. This latest update seems to be having a problem holding onto my files. When I save as pdf, print, and go back to make changes in Finale, I rewrite a pdf over the file with the new changes in the document. "Save as Adobe PDF" is ignoring what I've changed and rewriting the same file. I have to quit Acrobat to get it to release its memory of the file. After I quit, no problems. If I leave Acrobat running, it is "using" the document. I can delete the file from my desktop, but if I try to empty the trash, it claims the file is in use (it's not open) until I quit Acrobat. Then the trash will allow it to be permanently deleted.
    Does anyone know if there is a solution to this? I've dug around for hours in the user manual, the forums, and the preferences, trying to find some way to turn off this "feature". Whatever that may be. Any help would be greatly appreciated.

    What is the message that is posted by Windows when it crashes?  That message might give you a hint as to what is root cause.

  • Postscript file format issues!!

    HI,
    What is the difference between Generating postscript files using "generatePrintedOutput" operation of Output ES2 service and "toPS" operation of ConvertPDF1.1 service.
    I have generated both formats and found a lot of differences between the content when compared as text files. It is beyond my knowledge to understand the instructions.
    I had to use "toPS" operation for generating a postscript file by merging multiple PDF documents which were generated by "generatePDFOutput" service.
    I had to avoid using the "generatePrintedOutput" because of my requirements to name PDF files and postscript files uniquely.
    but, there seems to be some problem to process the postscript files that were generated by "toPS" operation of ConvertPDF1.1 service.
    Please help!!
    Thanks
    Rakesh

    Hi Vikram
    Thanks for the reply.
    I will rephrase my question,
    I need an output of Postscript Language level 2 and i know we can do it either with "toPS2" service or "GeneratePrintedOuput " of output es2.
    I have a PDF that needs to be converted to postscript and hence i cannot use "generatePrintedOutput". When "toPS2" is used, it is missing "duplex/simplex" information.
    Do you know which xdc file is used by "toPS2" service so that i can include options?
    OR any other solution for including duplex/simplex information in an output generated by "toPS2" ??
    Thanks
    Rakesh

  • Error message file format not supported

    while importing footage from the sony fs-100 to premier pro cs6, I get an error message that reads "file format not supported", and lists every file in the folder i just tried to import. however, once I exit out of that message window, all of those files are available and seem to have imported without error, in spite of the error message. I have scanned through a lot of it, and I can't seem to find any problems, or unwanted artifacts in the footage or audio. I even placed a few clips in the timeline and exported it, and the exported video was also fine. There doesn't seem to be a problem with the footage but I'm afraid to build this large project only to find something wrong with it down the line. please help me.

    In the folder along with the video files are a number of 'metadata' files, it is these files that Premiere is saying are not recognised, as you have found the video imports fine. When importing using the Media Browser these files tell Premiere how to treat spanned clips amongst other things. As Ann says it always works better if you use the Media Browser for importing any asset.

  • Format issue causing iBook navigation problems

    Hello!
    I created an iBook for a client, but some of the default functions of an iBook aren’t working when it’s previewed on iPad. My question is: since the file format seems to be the issue, what can be done to alleviate it?
    Problems
    When previewing the iBook on the iPad...
    Framing features such as navigation bar, book info, bookmark tool, etc. are missing
    The pages lack animated page turns
    Right and left page edge riffles are missing
    When the iPad is turned vertically…
    Pages scroll top to bottom instead of left to right as they should
    All images disappear
    Basically, the iBooks works mostly well in landscape mode but not so much in portrait mode. The client checked other iBooks to compare and the iBook I created is the only one with problems with the interface functions.
    Steps Taken To Save & Preview File
    Saved the iBook file as an IBA file. I also Exported it as an iBooks file.
    Sent IBA and iBooks files to the client to preview on his iPad (I don’t have one so I can’t preview it myself).
    The client opened the IBA file using iBooks Author then clicked the “Preview” button.
    The IBA file cross-loads to the iPad and the problems can be seen.
    The client also attempted to load the IBA and iBooks files on the Book Proofer application (this application does accept IBA and iBooks files), but that didn't work either. The client told me that are some file format issues unrelated to content, leading me to believe that it's a format issue.
    Technical Specifications
    iBook Author version I used to create iBook
    1.1 (the latest)
    iBooks version client used to preview iBook
    iBooks version 2.1.1 (April 16, 2012 release)
    iPad version the iBook is being previewed on
    1st Generation 64GB iPad
    File being used to preview on iPad
    The IBA and iBooks files for the iBook
    Could it be file format incompatibilities? Has anyone had this issue before? I hope the information I provided is useful. Any insight about these issues is greatly appreciated!
    Thanks,
    Catrina

    Again, sorry, a 'Shared' .ibooks file has the same format as what users download from the store.
    You don't need to be in the store to circulate that file. 'private' as defined depends on you. Email that file if possible and/or put it on your own server/dropbox and share the link to trusted individuals.
    If you're sending the .iba file to someone that then uses it in iBA, they need to use the 'Shared' menu to generate an .ibooks file, then drop that into iTunes and sync to their device.
    See iBooks Author: Publishing and distribution FAQ - Support

  • File Format Not Recognized

    This problem is relentless!
    Recently my ATV is having a file format recognition problem when I attempt to play any content that is streamed between my iMac and ATV. (Note, this streaming was previously done over my AirPort Extreme wirelessly. I have since connected the ATV via ethernet directly to the AP Extreme--the iMac has always been ethernet connected. The change had no impact on the filr format error)
    All of my media is stored on one of three external drives that are connected to my iMac.
    The file format recognition problem goes away temporarily when I close and restart iTunes (8.2). So my new thoughts are that it is possible that my drives are spinning down (going to sleep) and then I go to use ATV to access the drive, but it has spun down.
    Can anyone give me (a newb) some advice/instructions on how to prevent my drives from spinning down? I have downloaded NoSpin 3.3 (the trial version), but this doesn't appear to be preventing the drives from sleeping.
    -ATV connected via ethernet to AirPort Extreme router
    -iMac connected via ethernet to AP Extreme router
    -Not syncing files, just streaming
    -Media files located on three external drives: music, tv shows, movies
    -I have recreated my iTunes library already.
    -Problem existed even before the 2,4 upgrade. Thought the upgrade seems to have made it much worse.
    -Restarting iTunes works, but only until the video finishes. when i try to play another, it gives the error.
    Any thoughts?

    (Apologies for the above mis-post. Copy & Paste error)
    Alright, great news! It seems the 'file format' issue has been resolved. I made two changes tonight, one intentional, the other not.
    1. Installed 'Keep Drive Spinning' and set the app to touch each drive on 60 second intervals.
    2. Rather than connecting directly to my iTunes library, I connected to another library. The second library was created during troubleshooting as many 'solutions' had suggested recreating the iTunes library. After the recreation of my library I still experienced the 'file format' error, but never did delete the excess library. It was this library to which I directed the ATV as a 'shared' library rather than the default (or primary) library.
    I have now successfully watched four full TV Show episodes without experiencing any freezing or 'file format' errors.
    If any readers have questions, please reply to this post. Also, I will continue to test this as a viable solution and will report any issues.
    **Link to 'Keep Drives Spinning' http://www.apple.com/downloads/macosx/systemdiskutilities/keepdrivespinning.html

  • PS Custom Format Plugin - Issue Reading Files 2GB & 4GB

    Is this issue fixable within our format plugin code, or is it  a photoshop limitation?
    I am new to Photoshop & Photoshop Plugins.  I have reviewed the sdk photoshop documentation & searched web on this subject.
    I am working with a photoshop format plugin written by my predecessor who is no longer here.
    The plugin is modeled after the simpleFormat plugin.
    The plugin is being used on systems running Photoshop CS6 & CC on 64bit Windows 7 with 8GB or more memory.
    The plugin allows a file of our format to be opened, read and written.
    ISSUE:
    The plugin works fine reading  files < 2GB or > 4GB.  For files between 2GB and 4GB, the call to allocate memory fails.
    In the plugin's PIPL structure:   the FormatMaxSize {32767, 32767} and PluginMaxSize {PlugInMaxSize { 2147483647, 2147483647 }
    In the plugin code;  the DoReadStart() method opens the file and reads the file header information.  This works fine.
    Next, in the DoReadContinue() method: SPsBuffer->New(&bufferSize, buffersize) is returning NULL.     see below.
    void PluginMain (const int16 selector,
                                                                             FormatRecordPtr formatParamBlock,
                                                                             intptr_t * data,
                                                                             int16 * result)
        gFormatRecord = reinterpret_cast<FormatRecordPtr>(formatParamBlock);
              gPluginRef = reinterpret_cast<SPPluginRef>(gFormatRecord->plugInRef);
              gResult = result;
              gDataHandle = data;
    sSPBasic = ((FormatRecordPtr)formatParamBlock)->sSPBasic;
    if (gCountResources == NULL ||
                gGetResources == NULL ||
                gAddResource == NULL ||
    gFormatRecord->advanceState == NULL)
    *gResult = errPlugInHostInsufficient;
    return;
    // new for Photoshop 8, big documents, rows and columns are now > 30000 pixels
    if (gFormatRecord->HostSupports32BitCoordinates)
            gFormatRecord->PluginUsing32BitCoordinates = true;
    static void DoReadPrepare()
         gFormatRecord->maxData = 0
    static void DoReadContinue (void)
              int32 done;
              int32 total;
              int32 row;
              VPoint imageSize = GetFormatImageSize();
              /* Set up the buffer & progress variables. */
              done = 0;
              total = imageSize.v;
        Ptr pixelData        = NULL;
        Ptr rawData          = NULL;
        Ptr uncompressedData = NULL;
        int64* offsetTable   = NULL;
    /* allocate the pixel buffer. */
              unsigned32 bufferSize = gFormatRecord->planes * imageSize.v * imageSize.h;
              pixelData = sPSBuffer->New( &bufferSize, bufferSize );            <======   This allocation fails for file sizes > 2GB & < 4GB.
              if (pixelData == NULL)
                        *gResult = memFullErr;
                        //return;
                        if(*gResult == memFullErr) { goto ReadContinueCleanUp; }

    Some examples of files that are successfully read and files that are not successfully read are shown below:
    Filenames that contain "nok" as part of the name, would not open and an out of RAM error occurs.
    in the ReadContinue method, shown in an earlier post on this thread.
    Filenames
    12x12ok
    12x24ok
    ok
    nok
    nok
    nok
    ok
    hdots
    17280
    17280
    23160
    23180
    30001
    32768
    32768
    vdots
    8640
    17280
    23160
    23180
    30001
    32768
    32768
    hdots * vdots
    149299200
    298598400
    536385600
    537312400
    900060001
    1.074E+09
    1.074E+09
    hdots  + vdots
    25920
    34560
    46320
    46360
    60002
    65536
    65536
    hdpi,vdpi
    1440:720
    1440:720
    1440:720
    1440:720
    1440:720
    1440:720
    1440:720
    #channels
    4
    4
    4
    4
    4
    4
    5
    #bpp
    2
    2
    2
    2
    2
    2
    2
    compression
    Packbits
    Packbits
    Packbits
    Packbits
    Packbits
    fileLength(bytes)
    8593776
    8647536
    14365054
    17063936
    21258240
    filesize (MB)
    356
    712
    8.19
    8.24
    13.7
    16.27
    20.27
    filesize (GB)
    0.348
    0.69
    0.008
    0.008
    0.0134
    0.016
    0.0198

Maybe you are looking for

  • Dynamic Action in APEX 3.1.2

    Hi All, I am trying to achieve dynamic action in apex 3.1.2 without refreshing the page. I have 2 pages, In page 1 I am opening page 2 which returns an html text to an hidden value which is working fine up to this part. I am trying to show the return

  • HP 505B locking up and kicking out a frozen white screen. Hard reboot seems to fix it for awhile

    So I have an HP 505B running in our office with Windows 7 Pro 32bit, intergrated nvidia graphics, and 4gbs of memory. Product number VS882UT. It will randomly hard lock and display a white screen on the monitor. I have tried reseating all cables, rep

  • JAI speed problem

    Hi everybody, I met a very tricky problem in using JAI to process tiff files. When I use JAI to process a small tiff stream of about 30k, it takes a hour and show the image successfully. The code I was using is as follows: SeekableStream s=new Memory

  • Remove element from multi-surface

    Hi there, I am trying to fix some invalid multi-surface geometries that are derived from a 3D source, many of which have ORA-54514: overlapping areas in multipolygon.  I can find out which subset geometry (aka the element in this context) is causing

  • FaceTime Camera not detected @ Google Hangout with OS X Mavericks 10.9

    after i update my mac book air 2013 mid, my FaceTime Camera not detected @ Google Hangout with OS X Mavericks 10.9