Rendering .avi files without increasing size of file

I have 1. a DV/PAl (1.07) 25fps file 733MB sent by client
2. Insert clip rendered as a .mov (the rendering software does not have other options)
I combine the two in AE and render it out as an .avi file that I must return to client at same file size just with the special effect.
PROBLEM:
I render out as an .avi and the file increases to 6Gigs (not joking).
The workaround is to take it into Premier and just reprocess the clip, which works, but adds an extra step.
QUESTION:
Is there a codec that I need that will allow me to avoid taking it into Premiere. If so please be specific. I tried DivX and it crashed AE, so maybe I have the wrong version????
Thanks

Why must the rendered clip have the same file size? That way you will work on a compressed clip that you then recompress again and deliver so that the final output can be compressed again. That's three lossy compressions; guess how the final output will look!
Instead: use lossless compression in the production and only output to a lossy compression format. DV is highly compressed and each recompression will destroy the image quality!
I'd recommend that they deliver a QuickTime PhotoJPEG @100% or a QuickTime Animation @100% (which supports an alpha channel). Alternatively you can use the BlackMagic Decklink QT codecs for 10-bit lossless compression. You can then render back to the same codec and you will not cause any qualityloss during the process.
- Jonas Hummelstrand
http://generalspecialist.com/

Similar Messages

  • Ur temprory tablespace full . how u resize or increase size of file .

    ur temprory tablespace full . how u resize or increase size of file .u have no more space .how u slove

    Answers in your duplicated thread: Some inter view Questions Please give prefect answer  help me
    You can get all the answers at http://tahiti.oracle.com.
    You understimate job recruiters, a simple crosscheck is enough to discard people with experience from people who memorize 'interview answers'.
    Don't expect to get a job just because you memorize answers for 'job interviews', get real life experience.

  • How to replace or remove last 500 bytes of a file without rewriting all the file?

    Hi everyone,
    Usually I only ask for help when I can't find a solution for several days or weeks... And guess what? That just happen!
    So, this is what i am trying to do:
    I have a program to ZIP folder and protect them with password, then it encrypts the zip file.
    That it's working fine, until the user forgets his password.
    So, what I want to do is give the user a Recovery Password option for each ZIP file created. I can't use the Windows Registry because the idea is to be able to recover the password in any computer.So i came up with an idea...
    In simple terms, this will work like this:
    0 - Choose folder to ZIP
    1 - Ask user for recover details (date of birth, email etc)
    2 - ZIP folder with password
    3 - Encrypt ZIP file
    4 - Encrypt recover details and convert it to HEX
    5 - Add recover details (in HEX) to the end of the ZIP file (last bytes)
    6 - Add "5265636F76657244657461696C73" which is the text "RecoverDetails" in HEX
    7 - Add "504B0506000000000000000000000000000000000000" this is the final bytes of a ZIP file and will make the Operating System think that is a ZIP file (i know that will give an error when we try to open it.. the ideia is to change the
    extension later and use my software to do all the work to access this ZIP/folder again)
    So, explaining what it's here, I want to say that I managed how to do all of this so far. The point number 6 will help us to determine where the recover details are in the file, or if they actually exist because user can choose not to use them.
    In order to unlock this ZIP and extract it's contents, I need to reverse what I've done. That means, that  need to read only the last 500 bytes (or less if the file is smaller) of the ZIP and remove those extra bytes I added so the program can check
    if the user is inputing a correct password, and if so decrypt contents and extract them.
    But, if the user insert a wrong password I need to re-add those bytes with the recover details again to the ZIP file.
    The second thing is, if the user forgets his password and asks to recover it, a form will be shown asking to insert the recover detail (date of birth, email etc), so we need to reed the last 500 bytes of the ZIP, find the bytes in number 6 and remove the
    bytes before number 6, remove bytes in number 6 and number 7, and we will have the recover details to match against the user details input.
    I have all done so far with the locking process. But i need help with the unlocking.
    I am not sure if it's possible, but this what i am looking for:
    Read last 500 bytes of a file, remove the bytes with recover details and save the file. Without reading the whole file, because if we have a 1GB file that will take a very long time. Also, i don't want to "waste" hard drive space creating a new
    clone file with 1GB and then delete the original.
    And then add them back "in case user fails the password" which should be exactly the same.
    This sounds a bit confusing I know, even to me, I am writing and trying to explain this the better I can.. Also my English is not the best..
    Here it goes some code to better understanding:
    'READ LAST 500 BYTES OF ZIP FILE TO CHECK IF IT CONTAINS RECOVER DETAILS
    Dim oFileStream As New FileStream(TextBox_ZIP_to_Protect.Text & ".zip", FileMode.Open, FileAccess.Read)
    Dim oBinaryReader As New BinaryReader(oFileStream)
    Dim lBytes As Long = oFileStream.Length
    oBinaryReader.BaseStream.Position = lBytes - 500
    Dim fileData As Byte() = oBinaryReader.ReadBytes(500)
    oBinaryReader.Close()
    oFileStream.Close()
    Dim txtTemp As New System.Text.StringBuilder()
    For Each myByte As Byte In fileData
    txtTemp.Append(myByte.ToString("X2"))
    Next
    Dim RecoveryDetailsPass_Holder = txtTemp.ToString()
    'Dim Temp_2 = txtTemp.ToString()
    'RichTextBox1.Text = txtTemp.ToString()
    If txtTemp.ToString.Contains("505245434F47414653") Then
    'we have password recovery details(the numbers mean RecoverDetails in HEX)
    'next we will get rid of everything before and after of string "cut_at"
    Dim mystr As String = RecoveryDetailsPass_Holder 'RichTextBox1.Text
    Dim cut_at As String = "505245434F47414653"
    Dim x As Integer = InStr(mystr, cut_at)
    ' Dim string_before As String = mystr.Substring(0, x - 1)
    Dim string_after As String = mystr.Substring(x + cut_at.Length - 1)
    RecoveryDetailsPass_Holder = RecoveryDetailsPass_Holder.Replace(string_after.ToString, "")
    RecoveryDetailsPass_Holder = RecoveryDetailsPass_Holder.Replace("505245434F47414653", "") ' this is RecoverDetails in HEX
    RecoveryDetailsPass_Holder = RecoveryDetailsPass_Holder.Replace("504B0506000000000000000000000000000000000000", "") ' this is the bytes of an empty zip file
    'AT THIS POINT WE HAVE ONLY THE RECOVER PASSWORD DETAILS (date of birth, email etc) IN THE VARIABLE "RecoveryDetailsPass_Holder"
    '////////////////////////////////////////////////////// TO DEBUG
    'MsgBox(string_after.ToString & "505245434F47414653")
    'InputBox("", "", string_after.ToString)
    '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ TO DEBUG
    'Temp_2 = Temp_2.Replace(RecoveryDetailsPass_Holder.ToString, "")
    Now that we have the recover details, we need to remove them from ZIP in order to the software try to unzip it with the password provided by the user on the GUI.
    If the user needs to recover the password we have the details already in RecoveryDetailsPass_Holder variable and just need to match them against user input details.
    If the user fails, we need to put the RecoveryDetailsPass_Holder back on the file.
    Any question just ask, it's a bit trick to explain i think, but please ask.
    Anyone know how to do this?
    Many thanks in advanced.
    Nothing is impossible!
    @ Portugal
    Vote if it's helpfull :)

    @ ALL
    Thank you very much for you help. I know that if I'm "playing" with bytes you should assume that I know a lot of VB.net, but I don't know that much unfortunately. I am not a beginner but I am still very fresh and I probably do stuff that work but
    probably not in the best way...
    Anyway, I will explain the idea of this little software I'm making. Once I wanted to create a program to protect folders with password, and I came up with something to change folder permissions to lock access to them, and that actually worked fine and quickly.
    However, I managed how to "crack" the protection by going to folder properties, security tab and then give permissions back to my username. So that, to me, wasn't a safer system to protect folders, also I want the ability to use passwords. So I search
    and search online for a way to do it, and someone replied (to someone with the same question as me) that the best option would be to create a zip with all contents of the folder, with password and then change the extension from .zip to .whatever and register
    the new extension .whatever on the Windows Registry, so that file will have an icon and open with my software.
    So I did...The program zips everything, change the extension and I added the encryption to avoid people changing the extension to ZIP or trying to open with 7-Zip or similar and be able to see the protected files names in the .zip/.whatever
    Answering to all of you now:
    @Armi
    "System.IO.FileStream.SetLength"
    I know I tried that but I erased the code because it didn't work for some reason, I don't remember why sorry, was long time before I created this post.
    The last code I was trying to use was this:
    ' Set the stream position to the desired location of the stream.
    Dim fileStream As IO.FileStream = _
    New IO.FileStream(TextBox_ZIP_to_Protect.Text & ".zip", IO.FileMode.Append)
    Try
    ' Set the stream (OFFSET) position to the desired location of the stream.
    fileStream.Seek(210, IO.SeekOrigin.Current)
    Dim Bytes_do_ZE As Byte() = HexStringToByteArray(Temp_2.ToString)
    'Write Characters ASCII
    For Each Byte_Do_Zeca As Byte In Bytes_do_ZE
    fileStream.WriteByte(Byte_Do_Zeca)
    Next
    Finally
    fileStream.Close()
    End Try
    and we need this:
    Private Shared Function HexStringToByteArray(ByRef strInput As String) As Byte()
    Dim length As Integer
    Dim bOutput As Byte()
    Dim c(1) As Integer
    length = strInput.Length / 2
    ReDim bOutput(length - 1)
    For i As Integer = 0 To (length - 1)
    For j As Integer = 0 To 1
    c(j) = Asc(strInput.Chars(i * 2 + j))
    If ((c(j) >= Asc("0")) And (c(j) <= Asc("9"))) Then
    c(j) = c(j) - Asc("0")
    ElseIf ((c(j) >= Asc("A")) And (c(j) <= Asc("F"))) Then
    c(j) = c(j) - Asc("A") + &HA
    ElseIf ((c(j) >= Asc("a")) And (c(j) <= Asc("f"))) Then
    c(j) = c(j) - Asc("a") + &HA
    End If
    Next j
    bOutput(i) = (c(0) * &H10 + c(1))
    Next i
    Return (bOutput)
    End Function
    That code, as I understand, is to search for the OFFSET of the bytes in the file and start to write from there... That OFFSET should be the beginning of the 500 bytes read on the code before. I got the OFFSET position "210" reading the file with
    the HEX editor "HxD - Hexeditor v1.7.7.0" but using the OFFSET won't work because every file, password, recover details and so on, are different and so the file size, changing the OFFSET I
    think.
    @Reed Kimble
    Does that sound like something which might work for you?
    Thanks for your help. That might be some solution, however it seams a bit of the same problem where we need to read the bytes again to get the recover details. But, as I said in this post, because this is meant to password protect folders, do you think that
    will apply as well?
    @Crazypennie
    Thanks for your reply.
    All this appears really weak. The user has your application since he need it to open the file .... and the code in the application contain the code to read the file without knowing the password. Therefore anyone can read your code and retrieve the
    data without the password ... if he knows VB.
    The application can only open the file if the user didn't use a password to protect the file. Because the file is encrypted and needs to be unencrypted first.
    When the application tries to open/read the file, will need to decrypt it first and then check for a password and do the validation. Also the application is with the code masked/protected which i think it might not be easy for reverse engineering.
    - You need to use a web server and a symmetric key encryption
    This a good idea, besides I don't know how to implement it. However the idea is to be able to:
    1 - Protect a folder anywhere in any Windows computer (portable app)
    2 - Recover password details (security question) in any computer, online and offline
    And I think we need a computer always connected to the Internet to use that method, right?
    @ Mr. Monkeyboy
    Thank you very much for your effort.
    I just wanted to let you know that the zip method you are using is no longer supported.
    I didn't actually knew that. Thanks for letting me know.
    Do you require the compressed encrypted files to actually be Zip files or could they just be compressed files that have nothing to do with Zip?
    No, it doesn't need to be a .zip extension. I am actually using my own extension. It starts as a Zip but then I changed to my own extension which I have registered on the Windows Registry.
    @ ALL
    Thanks again to all for trying and spending time helping me.
    By the way, I might not be able to answer or try any code during the weekend... It's easter break and family is around. Have a nice easter everyone. :)
    Nothing is impossible! Imagination is the limit!

  • How can I open a PDF file without first saving the file?

    How can I open a PDF file without first having to save the file?

    How can I open a PDF file without first having to save the file?

  • SQLLDR to load data in Excel file without converting to CSV file

    Hello Guys,
    We are getting data in excel sheet and we need to insert data into oracle table. Is it possible to do with SQLLDR command that too without converting the excel file to csv format.
    If its possible can any one share a pseudo code to do that.
    Your help is well appreciated.
    Thanks in advance

    Is it possible to do with SQLLDR command that too without converting the excel file to csv format
    SQL*Loader does not know how to process the microsoft proprietary binary format of Excel files.  If you really want to use SQL*Loader then the data will have to be exported from Excel to a format that SQL*Loader can use, such as CSV... otherwise, don't use SQL*Loader (see the FAQ I posted already)

  • How can I generate my own InDesign ePub file without the encryption.xml file?

    My bookstore (B&N) will not accept my ePub file because it doesn't want the file encryption.xml included. How can I generate an InDesign ePub file, for my own books, without it? Is there a check box somewhere? I've searched through the ePub export box and the file info boxes—no luck.
    Error message from B&N's PubIt.com:
    We have found a file name called encryption.xml within your ePub file container, which means that part of, or all of, your file is encrypted. We do not accept any encryptions within ePub source files. Upon closing this message, please remove the encryption.xml file from your ePub, and you may attempt to upload your ePub file again.
    If you wish to apply DRM to your title, go to Section 4, question H and select Yes. PubIt! will apply DRM to your title after you have uploaded your ePub file without encryption.
    Thanks for your help…

    Unfortunately you will find the option to uncheck "Embeddable Fonts" within ID CC 2014 only if you are creating an ePub with reflowable layout, but not if you are creating a "fixed layout" ePub.
    I went with the suggestion of the eCanCrusher and was pleasantly surprised how easy to use this free tool is. You basically just drag your ePub over the icon of the App and it creates a folder in which you find the encryption.xml within the META-INF folder. Once you erased it you drag the folder over the icon of the App and through this you will get a new encryption-free ePub which now passes iTunes Connect Book Proofer test.
    But then - opening the ePub without it's encryption within iBooks (on ipad) the text has moved, spaces between words are gone for no reason, words are even sticking into each other - it looks unacceptable! It does look OK on the iBook desktop app, however.
    My solution was to change the font from Myriad to Verdana. I had changed the fonts before, because - whatever font I had used - it's reproduction on the ipad was messed up, and Myriad was the first one that I tried that looked alright, though, not so much after removing the encryption.xml. Unfortunately everything changes when you change fonts within a fixed layout ePub and all line breaks have to be revised now...
    I also tried to remove the embedded fonts from inside the ePub, like someone else suggested, but that didn't help with the Book Proofer. It's really the encryption.xml that needs to be removed.
    I wish that I now finally can submit successfully to Apple and wish that Adobe would have a better relationship with Apple to solve issues like that.

  • How to export war files without including the library files

    Hi,
    I have several portlets that share the same jar files. In my tomcat, I'd like to load those jar files from shared/lib when tomcat starts up. Currently, to accomplish this, I export the war file from jsc, deploy to tomcat, then manually delete the jar files from WEB-INF/lib.
    Is there a way I can modify some property file so that my war file does not include the shared libraries?
    Thanks,
    Marc

    Hi!
    Rightclick project's root node in Projects window and select Properties. Then go to Build->Packaging and remove unnecessary libraries.
    Thanks,
    Roman.

  • Acrobat increases size of file when no text is present

    I an using Acrobat 9.  I have a certificate returned from the printers and the size is 115Kb.  I have put 8 lines of text on the entire document and the email size increase to 2985 Kb - no images or pictures in my text.  If I remove all the text and clear the comments totally the size then reverts to 975Kb (approx..)
    Can anybody tell me what is going on because I cannot send a group of certificates of 3Mb each down the wire?

    First of all, check which font you've used for these lines of text. You
    should use either a font that's already embedded in the file, or a standard
    font that's available in Acrobat by default, like Helvetica.
    Also, try saving the file using the Save As method under a new name. This
    forces an optimization of the file and can seriously reduce the file's size.
    On Tue, Aug 12, 2014 at 11:04 AM, bazzer it's me <[email protected]>

  • Trying to reduce HUGE file without changing size

    I have a 7.75MB (!) file. I am designing at full scale, wich is 90" x 90". Since I will later be using this file in a textile program and need to have it at full scale, I can't change it's dimensions. I have used live paint, layers, clipping masks, the works and that is part of the reason it is so big.
    Does anyone know a way to completely flatten the file? I need to reduce it's size to a most 2MB. It is so big now, that I cannot even use the "save for web" feature.

    Hello, winthur dewey.
    Expanding will most likely not reduce file size. Nevertheless, I will quickly explain how you flatten some or all of your art work.
    1. Both
    b Object>Expand
    and
    b Object>Expand Appearance
    are taking your complex objects and divide them into smaller discrete objects. Select some or all of your objects and try one of these commands to expand it.
    See http://help.adobe.com/en_US/Illustrator/13.0/help.html?content=WS714a382cdf7d304e7e07d010 0196cbc5f-62c4.html for a description about expanding (LiveDocs)
    2.
    b Object>Flatten Transparency
    is taking transparent and semi-transparent objects and turn them into bitmap, and expand other relevant, selected objects. This is actaully also the command that takes care of expanding dashed lines (because of the transparent gap between the lines). Usin fnormal expand for this, will end up with a solid line.
    See http://help.adobe.com/en_US/Illustrator/13.0/WS21A6953D-2FD5-4e21-8C4D-3410A9A09FBC.html for a description on the Transparency Flattener Options (LiveDocs)
    3. Save as Illustrator version 8 is a quick and dirty way to remove traces of the Appearance panel and transparency, since this version didn't support those features.
    See http://help.adobe.com/en_US/Illustrator/13.0/help.html?content=WS714a382cdf7d304e7e07d010 0196cbc5f-64a0.html for info about retaining transparency when saving (liveDocs)
    Important!: When dealing with transparency and effects, there eventually will be expanded to bitmap, it is important to have an eye on the command
    b Effect>Document Raster Effects Settings.
    This command will specify, what bitmap resolution your obejcts will be converted to, when expanding.
    See http://help.adobe.com/en_US/Illustrator/13.0/help.html?content=WS714a382cdf7d304e7e07d010 0196cbc5f-62c4.html for info about raster effects (liveDocs)
    All these things will flatten, or expanding your artwork. In Illustrator this will not give you smaller file size, but rather more compatible file for use in Adobe Flash, QuarkXpress and so on.
    If you need a complete bitmap image, you could try
    b File>Export
    and select some of the bitmap formats (JPG, PSD, PNG or TIFF). But 80" X 80" - I'm almost sure that is not the way to go.
    It is difficult for me to give you advice for optimization, when I do not have the document in front of me, but I hope you (one way, or the other) is getting it into the textile program :-)
    All the best
    /ockley

  • Compressing file without loosing size or quality

    Illustrator CS3 - AI 13.0 - need to compress a file or it's components to under 500K from a current 2.53 MB size and maintain full page viewing capabilities and quality. Will be placed on a real estate web site for broker/realtor viewing. Using a Dell PC, operating with Windows Vista.

    Ask a few more times, why don't you?
    The size of your Illustrator file is irrelevant to the size of the file you need to supply. EIther save your art using File > Save for Web (for a JPEG) or use File > Save a Copy (for PDF) and try different compression/resolution combinations until the size is under 500 KB and the quality is acceptable. For PDF also turn of Preserve Illustrator Editing Capability.
    It is odd that a website would ask for either a PDF or JPEG. the two formats serve different functions and are viewed differently on a website. JPEG images appear in-line with text within the layout of a web page. PDF files are either downloaded and viewed in a separate program or viewed in their own window entirely apart from the HTML of the website. The formats are not interchangeable, so you are probably misunderstanding the requirements.

  • Importing .MOD files without having the .MOI files

    Hi
    I have a Panasonic sdr-s100 which records MPEG2 video in the .MOD/.MOI format onto sd cards.
    Apart from the current 40+ restriction issue (see other posts), iMovie 08 imports new footage perfectly fine from my sd-card through my card reader.
    The real problem I am having is with the older footage I recorded over the last year and a half. You see, I deleted all the .MOI files which were - until iMovie 08 got released - commonly regarded as useless once you had the movie/.MOD files on your hard drive. It was assumed these were only needed by the camcorder. How wrong we all were!!
    So now I am having these neatly organized folders on my hard drive (100GB>) containing just the .MOD files, which iMovie refuses to recognize under File>Import. Copying the .MOD files back to an sd-card seemed like another option but iMovie 08 needs the accompanying .MOI files for the "Camera detected" message to pop up.
    There is another thread (on which I have also posted), where we are trying to find some way to regenerate those .MOI files or use other similar methods, but none are really successful as yet. We also contacted JVC and Panasonic but it is not looking good so far. See here: http://forums.macosxhints.com/showthread.php?t=77489
    Ideally, iMovie 08 would import my .MOD files straight from my hard drive without the need for .MOI files and simply use the .MOD's date modified info as the time stamp within iMovie 08. I do not wish to go via the DV route and re-import etc as it is way too time-consuming.
    Has anyone got any other tips or similar problems? In the meantime I have sent this issue to Apple Feedback.
    Message was edited by: RafDam

    MP_Root (at the root level of the card directory structure) and putting a folder 101PNV01 inside the MP_Root folder. I then put some mpg-2 file in the 101PNV01 folder, started iMovie '08, inserted the flash card and had the files recognized so I could import them.
    Great. This works!
    Here is what I did (and this should work for anyone who has old .MOD files but no longer has the accompanying .MOI files):
    Like F Shippey stated
    1) Create a root folder on your sd card (in my case, via a USB card reader) or USB stick (not tested) called Mp_Root.
    2) Inside this folder create another folder called 101PNV01.
    3) Rename the extensions of all your .MOD files to .MPG and copy them inside the 101PNV01 folder.
    4) Restart iMovie08. It will now detect a new camera and import all clips using the date created/modified info as timestamps for perfect cataloging!
    iMovie 08 does NOT re-encode the movie files, which is great cos it's very quick plus you retain 100% the original quality. It simply puts them in a .MOV container and creates a separate movie file for the thumbnails.
    Thanks for your help F Shippey!

  • [AS] Saving a file without creating an idlk file

    Hi there,
    I have an AppleScript that open an InDesign template (indt), import a XML file and then save the document to another folder than the one where the XML file and the template are living.
    The problem, and I don't see how to resolve it, is that InDesign always create a lock file (idlk) with the new document and I don't seem to find a way to close the new document.
    Here's the script:
    Translating:
    chemin_fichier_xml                           == path_to_xml_file
    chemin_gabarit_indesign                   == path_to_indesign_template
    chemin_nouveau_fichier_indesign      == path_to_new_indesign_file
    on genere_fichier_indesign(chemin_fichier_xml, chemin_gabarit_indesign, chemin_nouveau_fichier_indesign)
    tell application "Adobe InDesign CS4"
    set ce_document to open chemin_gabarit_indesign without showing window
    tell ce_document
    tell XML import preferences
    set import style to merge import
    set repeat text elements to true
    set import text into tables to true
    set import CALS tables to true
    end tell
    import XML from chemin_fichier_xml
    set le_nouveau_document to chemin_nouveau_fichier_indesign
    tell ce_document to save to le_nouveau_document with force save
    (* this will generate an error *)
    -- try
    -- close ce_document saving no
    -- close le_nouveau_document saving yes
    -- end try
    end tell
    end tell
    end genere_fichier_indesign
    TIA
    Cheers
    -Emmanuel

    Hello,
    Thanks for replying.
    I still get an idlk file and an error.
    --> Adobe InDesign CS4 got an error: Can’t get document 1 of document "Sans titre-3"
    I tried other variation:
    close file le_nouveau_document saving no
    --> Can’t get file "HD:Users:stereo:Applications:Automatisation Téléhoraires:Dossiers:InDesign - À valider:StThomasTimesJournal_20100131_1009_1_Quot.indd" of document "Sans titre-2".
    close documents saving no
    -->  Can’t get every document of document "Sans titre-3"
    I'm on Snow Leopard 10.6.2 and use ID CS4 v6
    Cheers
    -Emmanuel

  • How can I use a word file without pages changing the file

    I want to edit this word file I created, but pages either can't open it because i sent it via email from google docs, or it will change it completley. I don't want to get Office for mac, so What Do I Do?

    http://www.libreoffice.org
    It's open-source and quite nice and full-featured

  • How to Read data from excel file without converting a excel file into .csv or any other format

    Hello,
    Can somebody suggest me how to read from an excel file (consisting of 10 work sheets) to an array?
    Thanks,
    She

    You have to be careful when using the spreadsheet-files vi's.  They are located in the Functions Palette under File IO, you will find "Write To / Read From Spreadsheet File.vi"s. 
    Here is what the Context Help says about the vi function:
    "Reads a specified number of lines or rows from a numeric text file beginning at a specified character offset and converts the data to a 2D, single-precision array of numbers. You optionally can transpose the array. The VI opens the file before reading from it and closes it afterwards. You can use this VI to read a spreadsheet file saved in text format. This VI calls the Spreadsheet String to Array function to convert the data. "
    This is quick & easy when the spreadsheet is all the same format.  You can set the format to string as well.  HOWEVER...  you do have to convert the Excel spreadsheet to text before using it.
    I haven't experimented with the Active-X, but it may look as the way to go if you have combination text / numeric values in the spreadsheet.
    If you did convert it to text, then you can use array functions as well and treating the file as an array of strings (see very brief example attached).  The example is to illustrate a point only  
    JLV
    Attachments:
    starting point for spreadsheet.vi ‏28 KB

  • How to handle a fixed length file without newline?

    Hi Experts,
    I'd like to handle a fixed length file without newline by sender file adapter.
    A file like following.
    It contains three recores."AAXBBBXCCCCX" is one record.
    AA1BBB1CCCC1AA2BBB2CCCC2AA3BBB3CCCC3
    I tried that following two parameters set. But only first recored was read.
    fieldFixedLengths
    fieldFixedLengthType
    Please tell me how to handle.
    Thanks
    Shinya Kawagoe.

    For this case we wrote a simple Adapter Module inserting an end of line character after an offset.
    This way it can be reused in many interfaces.
    And reading the whole file may not be an option in case of large source files. May cause performance / memory issues.
    eolbean.offset = <recordLlen>
    XMLPayload xmlpayload = msg.getDocument();
    byte[] content = xmlpayload.getContent();
    byte crlf = 0x0A;
    int current = 0;
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    int lines = content.length / recordLen;
    do
         lines--;
         baos.write(content, current, recordLen);
         if (lines > 0) // if other lines, eol required
              baos.write(crlf);
              current += recordLen;
    } while (lines > 0);
    xmlpayload.setContent(baos.toByteArray());
    baos.close();
    Audit.addAuditLogEntry(key, AuditLogStatus.SUCCESS,     MODULE + " Done EOLing.");

Maybe you are looking for