DataOutputStream wrong file format

I have a small Java Application writing a file, I have been able to get file to be writen as I intended to BUT it comes out UNIX formated....which isn't good for easier text-application such as Ms NotePad.
How can I tell Java that i want it to use "Windows formating"?
my code for writing file:
     public void writeToFile(String toWrite) {
          try {
               FileOutputStream file = new FileOutputStream("XoY.txt", true);
               BufferedOutputStream buff = new BufferedOutputStream(file,128);
               DataOutputStream data = new DataOutputStream(buff);
                            data.writeBytes(toWrite);
               data.close();
                        buff.flush();
          } catch (IOException e) {
               System.out.println("" + e.getMessage());
          } catch (NullPointerException npe) {
               System.out.println("" + npe.getMessage());
     }I would be happy about any code you can provide for me.
Tanx for any help!

Use \r\n or (better)
System.getProperty("line.separator") (I think that's
right) for a newline.thanx for the help even though I dont know where i should insert the code you wrote...
by the way..here's how i call writeToFile()
                        String toWrite = new String("Nr: " + runs + " X: " + x + " Y: " + y + "\n");
               writeToFile(toWrite);

Similar Messages

  • Intrastat wrong file format

    Hi Gurus,
    I am customizing the INTRASTAT for Spain and everything works fine until the moment we create the file. This file should have different lines for every different information in the document, but what the system is doing is creating the file with ALL the information in the same line.
    Then when the user try to validate the information in the testing tool that the government provides, it says that the file has a wrong format. If we treat the file and we press enter in every place that it should be an enter, then it is correct and we pass the testing tool test.
    Do you know what is happening and why our system is not assigning the end of line correctly?
    Thank you in advance,

    I dont know.
    You should contact either Agencia Tributaria or SAP.
    maybe you can get more info from the guide
    Edited by: Jürgen L. on Feb 24, 2012 12:00 PM

  • Wrong  file format while generating a txt file

    Hi,
    I am using a java application to generate a txt file. This txt file will later be used by a spider. The problem is when the file is generated it has UNIX format. It means the '\n' characters at the end of the line are not the same as in a DOS file.
    I need the file to be in a "PC/DOS" format otherwise the spider will ignore the file.
    Any help would be appreciated.
    Regards,
    Fas

    Another stab at "simplest": can you avoid embedding
    newline characters in the strings
    your write and reply on PrintWriter's
    println() methods instead?But, if I understand the OP, this will cause the same problem. He is running on Unix but wants to generate a DOS type eol. The println() method will use the OS default; therefore, he needs to explicitly specify the DOS eol.

  • File formats for pictures

    I e-mailed myself  a picture, from my cell.  When I went to download it, I noticed it was a .png.  I have checked settings & read the manual & can't find how to change this.  Does anyone know?
    I had been trying to post a photo to an app & continue to get the error message of "wrong file format".  Couldn't figure out the error until I just e-mailed myself that picture & saw ,png.  NOW I know what the problem is! The app wants only .jpg
    TIA
    EDITED to add:
    With the new updates to the software I can view properties on the picture (cool).  When I view the propteries of these, they ARE .jpg... so why does it email or try to post to apps in a .png?   I don't have HD pictured turned on or anything

    Yes, screen shots are png.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • Firefox for Mac preferences shows .qif file format for quicken as "quicktime image format"-wrong application and won't let me select anything else

    Post to Firefox forum; Oct.2011
    Re: Quicken 2007; Mac OS 10.5
    Problem: can’t import or download Qif format files into quicken from bofa or Chase. Mac can’t recognize; how do I set preferences in Firefox (or Safari).
    https://support.mozilla.com/en-US/questions/new?product=desktop&category=d1&search=Firefox+for+Mac+preferences+shows+.qif+file+format+for+quicken+as+%22quicktime+image+format%22-wrong+application+and+won%27t+let+me+select+anything+else&showform=1
    Hello,
    I previously used Firefox on my old Mac G4 with OS 10.3.9; the above issue existed with that system and Firefox 2.00.2 (or similar). I then "tried" to move to a G5 Mac with OS 10.5, hoping that an updated Mac Operating system and updating Firefox would solve that problem.
    I'm now working on my son's MacBook Pro, OS 10.5.8, 2.4 ghz Intel Core 2 Duo; 2gb Memory; 2 gb 667 Mhz DDR2 SDRAM.
    I still have a problem in Firefox Preferences trying to download .qif files. BofA Mortgage accounts only allow downloading of .qif files. My .qfx download works fine, but the error message is as follows:
    The error message is that this is a corrupted file or one that Preview doesn't recognize.
    and it is still a problem when trying to download Quicken .qif format files for our B of A mortgage.
    The preferences for Firefox under File Helpers won't let me name the extension I want; instead, it CONFUSES .qif (Quicken Interchange Format) with .qtif (Quicktime Image Format) for Mac.
    Therefore, when I download .qif files and try to import them to Quicken, I get a message that this is a corrupted file:
    thanks for any help.
    Val in Seattle

    Well, in the end, I just gave up and deleted the photos, in the hope that it was something to do with them. Took some more photos and they seem to have imported without any problems at all.
    Given that the same irksome photos loaded on the wife's macbook without so much as a murmur, how weird is that?
    Still- all's well that ends well. Thanks for the suggestions- much appreciated.
    Matt

  • HT3775 My DVD player is supposed to play avi videos, but it often doesn't telling me that the file format is not recognized.  I suspect it's because it's the wrong codec.  How can I tell what the codec is before I burn a DVD?  And how do I get a workable

    My DVD player is supposed to play avi videos, but it often doesn't telling me that the file format is not recognized.  I suspect it's because it's the wrong codec.  How can I tell what the codec is before I burn a DVD?  And how do I get a workable codec?  Thanks for uour help!
    Ken Selvidge ([email protected])

    I am not a computer savy person.  I just need to plug in and have the machine do what it should do.
    Not a problem, but that indicates you have a lot to learn.
    File extensions like mpeg, mp4., avi, wmv, etc. are just wrappers. It is like a box the audio or video content is placed inside. The audio and video content must be encoded with a codec before it is placed in the box. There are thousands of codecs. Not all are installed on your Mac. You must have the same codec installed that encoded the video in order to play it. So, while Quicktime does support mpeg wrapper, it may not have the codecs to decode the internal video.
    Some programs have lots of the codecs available to them, like VLC, Niceplayer, MPlayerX, etc.
    You can also get "plug-ins" for Quicktime that add codecs to Quicktime, like Perian. Although it is no longer being developed, Perian still works well.
    Why is it so difficult? Probably because they are always working on ways to compress the video to get better playback.

  • I have the Adobe Premiere Pro CS4 "Classroom in a Book" but my computer says "File Format is not Supported" when I try to use accompanying DVD. What is wrong please, I really like the book and want to learn!

    I've had the product for a while and have tried editing without the book and using video's but it goes slow and I don't feel like I'm learning.
    I'm sure there are shortcuts to be had and I'm re-inventing the wheel it seems.
    "File Format not supported" means exactly what? Is my Windows Version not compatible?
    Not used to chat rooms, would prefer personal training but that is not the way of things anymore.

    Okay, so I Right Click and nothing says "Link Media".
    When I double click on an asset it says, "the selected file cannot be linked because it has 2 audio channel(s) and the clip was created with 1 audio channel(s)."
    However 1 video clip asset does open in CS4.
    The "Lesson One" project itself says, "file format not supported." still.

  • NullPointerException while uploading wrong file in af:inputfile

    Hi All,
    I am uploading excel sheet data into jspx Page(database table) by using af:inputFile.After uploading file af:inputFile need to be refresh.It is getting refresh for right file(excel file),but it is not refreshing for wrong file upload.
    it showing following error.
    UIComponent is null
    ADF_FACES-60097:For more information, please see the server's error log for an entry beginning with: ADF_FACES-60096:Server Exception during PPR, #2
    i had refer frank's blog https://blogs.oracle.com/jdevotnharvest/entry/how_to_reset_adf_faces.
    Could any one help on this!!
    Thanks in advance!!

    here is my jspx source code.
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich" xmlns:h="http://java.sun.com/jsf/html">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document title="ExcelToTable.jspx" id="d1">
    <af:messages id="m1"/>
    <af:form id="f1" usesUpload="true">
    <af:pageTemplate viewId="/oracle/templates/threeColumnTemplate.jspx" id="pt1">
    <f:facet name="center">
    <af:panelSplitter id="ps1" orientation="vertical" splitterPosition="146">
    <f:facet name="first">
    <af:panelFormLayout id="pfl2">
    <af:panelLabelAndMessage label="#{bindings.Deptno.hints.label}" id="plam1">
    <af:outputText value="#{bindings.Deptno.inputValue}" id="ot1">
    <af:convertNumber groupingUsed="false" pattern="#{bindings.Deptno.format}"/>
    </af:outputText>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.Dname.hints.label}" id="plam2">
    <af:outputText value="#{bindings.Dname.inputValue}" id="ot2"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.Loc.hints.label}" id="plam3">
    <af:outputText value="#{bindings.Loc.inputValue}" id="ot3"/>
    </af:panelLabelAndMessage>
    <f:facet name="footer">
    <af:panelGroupLayout layout="vertical" id="pgl2">
    <af:panelGroupLayout layout="horizontal" id="pgl3">
    <f:facet name="separator">
    <af:spacer width="10" height="1" id="s1"/>
    </f:facet>
    <af:commandButton actionListener="#{bindings.First.execute}"
    text="First" disabled="#{!bindings.First.enabled}"
    partialSubmit="true" id="cb1"/>
    <af:commandButton actionListener="#{bindings.Previous.execute}"
    text="Previous"
    disabled="#{!bindings.Previous.enabled}"
    partialSubmit="true" id="cb4"/>
    <af:commandButton actionListener="#{bindings.Next.execute}" text="Next"
    disabled="#{!bindings.Next.enabled}"
    partialSubmit="true" id="cb5"/>
    <af:commandButton actionListener="#{bindings.Last.execute}" text="Last"
    disabled="#{!bindings.Last.enabled}"
    partialSubmit="true" id="cb6"/>
    </af:panelGroupLayout>
    <af:commandButton text="Submit" id="cb7"/>
    </af:panelGroupLayout>
    </f:facet>
    </af:panelFormLayout>
    </f:facet>
    <f:facet name="second">
    <af:panelCollection id="pc1">
    <f:facet name="menus"/>
    <f:facet name="toolbar">
    <af:toolbar id="t2">
    <af:commandButton actionListener="#{bindings.CreateInsert.execute}"
    text="InsertRow"
    disabled="#{!bindings.CreateInsert.enabled}" id="cb2"
    immediate="true"/>
    <af:commandButton actionListener="#{bindings.Delete.execute}"
    text="DeleteRow"
    disabled="#{!bindings.Delete.enabled}" id="cb3"
    immediate="true"/>
    </af:toolbar>
    </f:facet>
    <f:facet name="statusbar"/>
    <af:table value="#{bindings.EmpView3.collectionModel}" var="row"
    rows="#{bindings.EmpView3.rangeSize}"
    emptyText="#{bindings.EmpView3.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.EmpView3.rangeSize}" rowBandingInterval="0"
    filterModel="#{bindings.EmpView3Query.queryDescriptor}"
    queryListener="#{bindings.EmpView3Query.processQuery}"
    filterVisible="true" varStatus="vs"
    selectedRowKeys="#{bindings.EmpView3.collectionModel.selectedRow}"
    selectionListener="#{bindings.EmpView3.collectionModel.makeCurrent}"
    rowSelection="single" id="t1" partialTriggers="::cb2 ::cb3">
    <af:column sortProperty="#{bindings.EmpView3.hints.Empno.name}"
    filterable="true" sortable="true"
    headerText="#{bindings.EmpView3.hints.Empno.label}" id="c1">
    <af:inputText value="#{row.bindings.Empno.inputValue}"
    label="#{bindings.EmpView3.hints.Empno.label}"
    required="#{bindings.EmpView3.hints.Empno.mandatory}"
    columns="#{bindings.EmpView3.hints.Empno.displayWidth}"
    maximumLength="#{bindings.EmpView3.hints.Empno.precision}"
    shortDesc="#{bindings.EmpView3.hints.Empno.tooltip}" id="it1">
    <f:validator binding="#{row.bindings.Empno.validator}"/>
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.EmpView3.hints.Empno.format}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="#{bindings.EmpView3.hints.Ename.name}"
    filterable="true" sortable="true"
    headerText="#{bindings.EmpView3.hints.Ename.label}" id="c2">
    <af:inputText value="#{row.bindings.Ename.inputValue}"
    label="#{bindings.EmpView3.hints.Ename.label}"
    required="#{bindings.EmpView3.hints.Ename.mandatory}"
    columns="#{bindings.EmpView3.hints.Ename.displayWidth}"
    maximumLength="#{bindings.EmpView3.hints.Ename.precision}"
    shortDesc="#{bindings.EmpView3.hints.Ename.tooltip}" id="it2">
    <f:validator binding="#{row.bindings.Ename.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="#{bindings.EmpView3.hints.Job.name}" filterable="true"
    sortable="true" headerText="#{bindings.EmpView3.hints.Job.label}"
    id="c3">
    <af:inputText value="#{row.bindings.Job.inputValue}"
    label="#{bindings.EmpView3.hints.Job.label}"
    required="#{bindings.EmpView3.hints.Job.mandatory}"
    columns="#{bindings.EmpView3.hints.Job.displayWidth}"
    maximumLength="#{bindings.EmpView3.hints.Job.precision}"
    shortDesc="#{bindings.EmpView3.hints.Job.tooltip}" id="it3">
    <f:validator binding="#{row.bindings.Job.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="#{bindings.EmpView3.hints.Mgr.name}" filterable="true"
    sortable="true" headerText="#{bindings.EmpView3.hints.Mgr.label}"
    id="c4">
    <af:inputText value="#{row.bindings.Mgr.inputValue}"
    label="#{bindings.EmpView3.hints.Mgr.label}"
    required="#{bindings.EmpView3.hints.Mgr.mandatory}"
    columns="#{bindings.EmpView3.hints.Mgr.displayWidth}"
    maximumLength="#{bindings.EmpView3.hints.Mgr.precision}"
    shortDesc="#{bindings.EmpView3.hints.Mgr.tooltip}" id="it4">
    <f:validator binding="#{row.bindings.Mgr.validator}"/>
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.EmpView3.hints.Mgr.format}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="#{bindings.EmpView3.hints.Hiredate.name}"
    filterable="true" sortable="true"
    headerText="#{bindings.EmpView3.hints.Hiredate.label}" id="c5">
    <f:facet name="filter">
    <af:inputDate value="#{vs.filterCriteria.Hiredate}" id="id1">
    <af:convertDateTime pattern="#{bindings.EmpView3.hints.Hiredate.format}"/>
    </af:inputDate>
    </f:facet>
    <af:inputDate value="#{row.bindings.Hiredate.inputValue}"
    label="#{bindings.EmpView3.hints.Hiredate.label}"
    required="#{bindings.EmpView3.hints.Hiredate.mandatory}"
    columns="#{bindings.EmpView3.hints.Hiredate.displayWidth}"
    shortDesc="#{bindings.EmpView3.hints.Hiredate.tooltip}"
    id="id2">
    <f:validator binding="#{row.bindings.Hiredate.validator}"/>
    <af:convertDateTime pattern="#{bindings.EmpView3.hints.Hiredate.format}"/>
    </af:inputDate>
    </af:column>
    <af:column sortProperty="#{bindings.EmpView3.hints.Sal.name}" filterable="true"
    sortable="true" headerText="#{bindings.EmpView3.hints.Sal.label}"
    id="c6">
    <af:inputText value="#{row.bindings.Sal.inputValue}"
    label="#{bindings.EmpView3.hints.Sal.label}"
    required="#{bindings.EmpView3.hints.Sal.mandatory}"
    columns="#{bindings.EmpView3.hints.Sal.displayWidth}"
    maximumLength="#{bindings.EmpView3.hints.Sal.precision}"
    shortDesc="#{bindings.EmpView3.hints.Sal.tooltip}" id="it5">
    <f:validator binding="#{row.bindings.Sal.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="#{bindings.EmpView3.hints.Comm.name}" filterable="true"
    sortable="true" headerText="#{bindings.EmpView3.hints.Comm.label}"
    id="c7">
    <af:inputText value="#{row.bindings.Comm.inputValue}"
    label="#{bindings.EmpView3.hints.Comm.label}"
    required="#{bindings.EmpView3.hints.Comm.mandatory}"
    columns="#{bindings.EmpView3.hints.Comm.displayWidth}"
    maximumLength="#{bindings.EmpView3.hints.Comm.precision}"
    shortDesc="#{bindings.EmpView3.hints.Comm.tooltip}" id="it6">
    <f:validator binding="#{row.bindings.Comm.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="#{bindings.EmpView3.hints.Deptno.name}"
    filterable="true" sortable="true"
    headerText="#{bindings.EmpView3.hints.Deptno.label}" id="c8">
    <af:inputText value="#{row.bindings.Deptno.inputValue}"
    label="#{bindings.EmpView3.hints.Deptno.label}"
    required="#{bindings.EmpView3.hints.Deptno.mandatory}"
    columns="#{bindings.EmpView3.hints.Deptno.displayWidth}"
    maximumLength="#{bindings.EmpView3.hints.Deptno.precision}"
    shortDesc="#{bindings.EmpView3.hints.Deptno.tooltip}"
    id="it7">
    <f:validator binding="#{row.bindings.Deptno.validator}"/>
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.EmpView3.hints.Deptno.format}"/>
    </af:inputText>
    </af:column>
    </af:table>
    </af:panelCollection>
    </f:facet>
    </af:panelSplitter>
    </f:facet>
    <f:facet name="header"/>
    <f:facet name="start">
    <af:panelGroupLayout id="pgl1">
    <af:panelFormLayout id="pfl1">
    <f:facet name="footer">
    <af:commandButton text="Upload" id="uploadButton"
    actionListener="#{FileProcessor.checkFile}" partialSubmit="true"/>
    </f:facet>
    <af:inputFile label="EmpFile" id="if1" value="#{FileProcessor.uploadedFile}"
    partialTriggers="uploadButton" binding="#{FileProcessor.inputFile}"/>
    <af:messages id="m2"/>
    </af:panelFormLayout>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="branding"/>
    <f:facet name="copyright"/>
    <f:facet name="status"/>
    </af:pageTemplate>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    and bean class code is as follows.
    package xxorn.model.view;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import javax.faces.application.FacesMessage;
    import javax.faces.component.UIComponent;
    import javax.faces.component.UIViewRoot;
    import javax.faces.context.FacesContext;
    import javax.faces.event.ActionEvent;
    import oracle.adf.view.rich.component.rich.input.RichInputFile;
    import oracle.adf.view.rich.component.rich.output.RichMessages;
    import oracle.adf.view.rich.context.AdfFacesContext;
    import org.apache.myfaces.trinidad.model.UploadedFile;
    import org.apache.myfaces.trinidad.util.ComponentUtils;
    public class FileProcessor {
    private CSVtoADFTableProcessor tablecreator;
    private UploadedFile uploadedFile;
    private String filename;
    private long filesize;
    private String filecontents;
    private String filetype;
    private RichMessages errorMsg;
    private RichInputFile inputFile;
    public FileProcessor() {
    public void setUploadedFile(UploadedFile uploadedFile) {
    this.uploadedFile = uploadedFile;
    this.filename = uploadedFile.getFilename();
    this.filesize = uploadedFile.getLength();
    this.filetype = uploadedFile.getContentType();
    try {
    if (filename.endsWith(".csv"))
    tablecreator.processCSV(uploadedFile.getInputStream());
    else if(filename.endsWith(".xls")){
    System.out.println("uploaded file is ********"+uploadedFile);
    tablecreator.fileSubmit(uploadedFile.getInputStream());
    //tablecreator.WriteXLS(uploadedFile.getInputStream());
    else if (filename.endsWith(".xlsx")){
    tablecreator.fileSubmitXSSF(uploadedFile.getInputStream());
    //wrong file upload
    else{
    String msg="this is a global message.";
    FacesContext ctx =FacesContext.getCurrentInstance();
    FacesMessage fm = new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, "Please Upload proper file");
    ctx.addMessage(null,fm);
    } catch (IOException e) {
    e.printStackTrace();
    public void convertStreamToString(InputStream is) throws IOException {
    StringBuilder sb = new StringBuilder();
    String line;
    BufferedReader reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
    while ((line = reader.readLine()) != null) {
    sb.append(line).append("\n");
    System.out.println(sb.toString());
    public UploadedFile getUploadedFile() {
    return uploadedFile;
    public void setFilename(String filename) {
    this.filename = filename;
    public String getFilename() {
    return filename;
    public void setFilesize(long filesize) {
    this.filesize = filesize;
    public long getFilesize() {
    return filesize;
    public void setFilecontents(String filecontents) {
    this.filecontents = filecontents;
    public String getFilecontents() {
    return filecontents;
    public void setFiletype(String filetype) {
    this.filetype = filetype;
    public String getFiletype() {
    return filetype;
    public void setTablecreator(CSVtoADFTableProcessor tablecreator) {
    this.tablecreator = tablecreator;
    public CSVtoADFTableProcessor getTablecreator() {
    return tablecreator;
    public void setErrorMsg(RichMessages errorMsg) {
    this.errorMsg = errorMsg;
    public RichMessages getErrorMsg() {
    return errorMsg;
    public String checkFile(ActionEvent actionEvent) throws Exception {
    // Add event code here...
    System.out.println("in upload action event");
    /* RichInputFile vTheInputFileComponent = getInputFile();
    vTheInputFileComponent.resetValue();*/
    FacesContext vFacesContext = FacesContext.getCurrentInstance();
    UIViewRoot vUIViewRoot = vFacesContext.getViewRoot();
    RichInputFile vTheInputFileComponent =
    (RichInputFile)vUIViewRoot.findComponent("if1");
    vTheInputFileComponent.resetValue();
    AdfFacesContext adfFacesCtx = AdfFacesContext.getCurrentInstance();
    adfFacesCtx.addPartialTarget(inputFile);
    return null;
    public void setInputFile(RichInputFile inputFile) {
    this.inputFile = inputFile;
    inputFile=null;
    public RichInputFile getInputFile() {
    return inputFile;
    }

  • Fed up with "Unsupported File format" crashes!

    I really like Aperture - but, I am totally fed up with only being able to edit a few photos before I get the dreaded red/brown screen and the message of 'Unsupported file format' This cannot be the case as they are all .tifs and I have just edited several OK. My whole day is now one of 'stop/start' and either quit or sometimes 'Force quit'. Then Aperture works fine for another short series of edits - before the same problem recurs. It wastes a lot of valuable editing time - and completely spoils the otherwise pleasurable experience of using Aperture!
    I have made a lot of scans from original slides via a Nikon Coolscan 5000 - using Silverfast I have converted these from 48 bit to 24 bit. However, the file size is still large at 100MB - to get the best from the slides. I then import these .tifs into Aperture 2.1. I am using a MacBook Pro, 2.4 Ghz Intel Core 2 Duo with 4 MB RAM. I have an external 24 inch monitor. The .tif files are on an external firewire hard drive - 500 GB LaCie. My Aperture library is in my pictures folder on my MacBook Pro.
    Can someone PLEASE explain how and why I can make a series of edits fine in Aperture and then suddenly I get the red/brown screen and this unsupported file format message?
    Is it a memory problem? Given that I need to edit such large files is it a problem for my (powerful) MacBook Pro? Or, is it a more general problem with Aperure 2.1?
    Any advice - or solutions - PLEASE

    It's a bug in Aperture 2.x with large files and/or large pixel dimensions on images (not clear which). I have submitted a bug report, as should anyone who is seeing this. You'll find quite a few threads on this if you search back. The error message is frustratingly incorrect: there is nothing whatsoever unsupported or wrong with the file format, it just leads you down some dead ends in trying to find a solution while you figure that out.
    I could sometimes not even work on one image before it would do this. I went from 6GB to 10GB in my Mac Pro, and now I can pretty reliably work on two images before having to restart. So that to me smells like a memory leak or memory mismanagement of some sort is at the root of this, but who knows. We're all just waiting for each next release, hoping Apple has finally found and fixed this, because as you know they don't spend a lot of time discussing what bugs they're addressing; they just show up fixed eventually (one hopes!)
    If anyone chimes in here to tell you it's your fault for working with such large images, just ignore them. There were releases of 1.5 that handled these images just fine, as Aperture should. It broke with 2.x.
    Duncan

  • Hyper-v cannot boot Gen2 guest from Windows 2012 R2 or Windows 8.1 x64 ISO - file format not supported, Gen1 works fine

    I am new to Gen2 Hyper-V and so far I simply can't use it, because I am unable to install any (supported) guest OS from an ISO ...
    So far I tried that on:
    1. my HP Z230/i4770 workstation (Secure Boot disabled) host running Windows 8.1 Pro x64 (with Hyper-V feature enabled), can't boot any VM with supported OS ISO.
    2. my home desktop/i3770K (secure Boot enabled) host running Windows 8.1 Pro x64, same result, error during VM boot from ISO, quoted below.
    Synthetic SCSI controller (instance blah blah) Failed to Power on with Error 'The version does not support this version of file format'
    Gen1 guests of course work perfectly fine with those ISOs, because emulated DVD IDE picks up the official Enterprise Evaluation ISO of either Windows Server 2012 R2 or Windows 8.1 x64 Enterprise, perfectly fine and all works OK in Legacy boot mode.
    When I create a new guest and select Gen2, then no matter if I check or uncheck the Secure Boot in virtual Boot Order options for the guest (while setting the SCSI DVD at top of course), it simply doesn't work, always same error. I tried first connecting
    to VM to see if it prompts for key press, but it doesn't, the error is instant on Power on when (supported) ISO image is selected to be booted.
    I verified that both of official Enterprise Evaluation ISO's of either WS2012r2 and W8.1x64 are bootable in both the UEFI mode (Secure Boot enabled) and Legacy BIOS mode using a physical computer.
    What am I missing here???

    FYI, above is wrong! it's not about linking ISO to virtual DVD or selecting "Install OS later", it's all about the location of the ISO file and share permissions on parent folder!
    I was actually suspecting several issues, but haven't had time to test it, was thinking about issues like assigning (or not) some of initial settings during Gen2 VM creation, e.g.:
    -Network connection through virtual switch or Not Connected (make no different if assigned or not)
    -Memory above 4096MB (makes no difference if < or > 4096MB)
    -ISO file location (makes huge difference!)
    The ISO file CANNOT be placed on network share OR in shared folder on same local drive as the VHDX file (works fine if parent folder is not shared).
    I can now replicate the issue easily every time and it always fails with file format unsupported message whenever I have the ISO file located either on remote network share, or (fails the same way too) when I have the ISO file placed locally (on host drive)
    when simply a parent folder is shared... must be some permissions issue... and a pretty dumb one considering that in production environments nearly everything is placed on remote file servers ...
    ... so the moral of the story is, if you want to install Gen2 VM in win8/2012 hyper-V then you must copy the ISO file to Hyper-V host drive AND make sure the parent folder is not shared. works every time now! :)

  • CG36 - Import report - No file format in the key file?

    Hi all,
    Transaction CG36: .Key files are successfully checked by u2018Check directoryu2019 in transaction CG36. The second step is the import process. The Import shows u2018greenu2019 successfully. But the Job description shows the following message:
    No file format in the key file test.key
    Number of errors: 0
    Job Finished:
    More details:
    No file format in the key file test.key
    Message no.C114
    Diagnosis:
    No entry for the document file type was found in the key file test.key
    System response:
    The report for the key file test.key is not imported.
    Procedure:
    Ensure that a document category is entered in the key file test.key
    TEST.KEY - Key file structure:
    CPN=TEST
    DTY=SDB
    SID=000000000492
    PRN=TEST PROD
    CTY=GB
    LAC=E
    STA=V
    DAT=19.03.1996
    FNA=1.PDF
    FTT=PDF
    During the report import (CG36, Dok-X), the workstation application is defined using the FFT entry in the key file, as displayed above, the key file as FTT=PDF defined correctly.
    We have processed the customizing settings which are required and described under: Report Import: Check Additional Settings (under EH&S u2013 Product Safety > Interfaces > Import and Export > Basis Settings for Import and Export).
    Is anybody familiar with the issue: No file format in the key file?
    What do I do wrong? Is the above Key file structure incorrect?
    Is configuration in SAP DMS required?
    Thank you in advance.
    Kind regards,
    Roy Derks

    Hello Roy
    my assumption would be: there is a typing error in the key file. If the content of the key files is like what you have published you must use in the key file
    FFT=PDF
    and not
    FTT=PDF.
    No further information is necessary and the other data seems to be perfect.
    With best regards
    C.B.
    PS: if necessary my be you could check DMS customizing. By standard EH&S implemenation a document type "IBD" should be there whiich is used for e.g. pdf file.
    PPS: I have no idea why the reimport check does not show up this issue.
    Edited by: Christoph Bergemann on Apr 8, 2010 8:49 PM
    Edited by: Christoph Bergemann on Apr 8, 2010 8:50 PM
    Edited by: Christoph Bergemann on Apr 8, 2010 8:54 PM

  • Premiere and Media Encoder will will no longer export my edit to any file format.

    This is on a Windows 8.1 PC.
    The edit exported fine until I made one big mistake.
    I created a Nested Edit to make a quick alteration.
    Since then the following is now the case and I cannot go back to an earlier edit to fix this.
    Premiere and Media Encoder will will no longer export my edit to any file format. Using either the Export Option or Media Encoder.  Get a dialog that says "Unknown Error Compiling Movie"
    There is nothing wrong with my footage.  This edit worked fine and I export through Media Encoder many times until I made a Nested Edit within the Premiere Project.
    I have tried all sorts of searches on the net for a fix to this but nothing seems to be current or indeed works.
    Any help would be appreciated as this is a show stopper.

    Thanks for the reply Mark, appreciated.
    I have found a work around but it still leaves a long term issue for Adobe to fix.
    As to your first solution:
    1).  The nested edit is already in its own timeline panel.  It will not export or encode via media encoder.  This is the problem.
    2).  I will try the KEM roll feature but I have a work around see following.
    3).  No I do not have a nested edit within a nested edit.
    I did a lot of research on the net on this issue as it happened to a colleague of mine on his machine about two weeks ago.  It took me six hours to get a fix and in his case there were six video clip that had read errors.  When I overwrote those clips from the original backup master it fixed the problem.  However I was never able to use Media Encoder again to export his project without it failing.  I could only use the Export feature.  Again he had used a nested edit in his project.
    I my case I do not have any nested edits within a nested edit.  All I did was drag my main edit onto the New Sequence icon at the bottom of the Project Bin.  This of course created a nested edit in a new Timeline Panel which is what I wanted.  I then slid the entire nested edit to the right in the timeline by two seconds as all a wanted to do was add two seconds of black at the head of the edit.  That was it.  From that point of creating the nested edit Media Encoder and the Export option failed every time with the fore mentioned error.
    The final work around was one of those I found previous mention of during my research.  I created a new clean Premiere Pro CC 2014 project, I then used the import option under the file menu.  I imported only the original main edit which brought in that edit along with all the required footage.  This would then export to disk using the Export feature.  However, Media Encoder will still not encode this new edit, it fails the same way every time, 'Unknown Error Compiling Movie'.
    As a test I loaded the old corrupt edit project back up and deleted the nested edit sequence completely and re-saved it.  This had no effect and did not fix the problem.  This particular project file will no longer export directly or via media encoder at all no matter what I do.
    This seems pretty serious to me.  I worked on this edit for a whole month without issue, encoding out roughs as a went without any issue, it was only yesterday after I made the nested edit that the project file is now useless as it will not encode out at all.  Yes I have a work around and was able to salvage my project and get it rendered in time for my deadline but the fact I have a partially working Project that Media Encoder will not touch does not instill me with confidence for long term use of Premiere Pro if this is going to happen again.
    Is there some place I can send this project file to Adobe to see if they can find out what is wrong with it?  I am not the only person having this issue I have seen other post going all the way back through CS6 it seems.

  • 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.

  • Dynamic File Name as source file format

    Hi Experts,
    I have to load daily Excel Workbook to HANA.
    Files will come to shared Folder in BODS Job Server in the format 'FILE_NAME_<DAYMONYYYY>'.xlsx format.
    Everyday the file name will be appended with System Date Format.
    Example: 'FILE_NAME_17JUL2014.xlsx', 'FILE_NAME_18AUG2014.xlsx' etc.
    I tried to achieve it by creating a substitution parameter and using it to dynamically define file name.
    But I am not able to define the parameter correctly. (screenshot attached).
    Please advise where I am doing wrong.  Is there any better way to achieve it.
    Thanks,

    Hi Bala,
    Thanks for your suggestion.
    For a test I have created
    1. A Flat File named "FLAT_FILE_2014.txt".
    2. A Global Variable $G_FILE_NAME as varchar(18) and value 'FLAT_FILE_'||Year(sysdate())||'.txt'.
    3. Used it in the File Name for File Format.
    Below is the result:
    When I hard-code the file name as "FLAT_FILE_2014.txt", I am getting the data Preview.
    But When I am using global variable $G_FILE_NAME, I am not getting the data Preview.
    Please check attached "C.png"
    Please suggest.
    Thanks,
    Krishnendu.

  • File format invalid when opening a word document

    Hi there,
    I have been sent a batch of Word and PDF documents, which when I try and open on my Macbook they all come up with the message 'The file format is invalid'. 
    I have previously been sent word and PDF files, and had no problem opening them.  I have used the Help resource, and followed the instructions about dragging the file to the Pages icon etc, but the same error message comes up.
    What could be wrong?  I think that the version of Word is 2007.
    Lucy

    As far as I know, Pages was never able to open PDF files.
    By default, this task is dedicated to Preview.
    M…oSoft created so many file formats that I'm not really surprised by what yo describe with Word documents.
    Would be a good idea to download and install the free LibreOffice from :
    http://www.libreoffice.org/
    Yvan KOENIG (VALLAURIS, France) lundi 20 février 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.3
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k

Maybe you are looking for