When it comes to binary files ...

I can't say I have a good grasp of the real differences between files written in text mode and files written in binary mode.
For (C) example:
struct data
int a, b;
} d;
d.a = 432;
d.b = 581924;
char s[14] = "hello world!\n";
FILE *fd = fopen("test.txt", "wt");
fwrite(&d, sizeof(data), 1, fd);
fwrite(s, sizeof(char), 14, fd);
fclose(fd);
fd = fopen ("test.bin", "wb");
fwrite(&d, sizeof(data), 1, fd);
fwrite(s, sizeof(char), 14, fd);
fclose(fd);
test.txt hexdump:
B0 01 00 00 24 E1 08 00 68 65 6C 6C 6F 20 77 6F 72 6C 64 21 0D 0A 00
test.bin hexdump:
B0 01 00 00 24 E1 08 00 68 65 6C 6C 6F 20 77 6F 72 6C 64 21 0A 00
What I know (and see):
strings containing '\n', when are written in text mode to a file, have the '\n' replaced by CR+LF / LF / CR depending on the platform; in binary mode it is left unchanged
binary files are used to represent the image of the memory used by a program; so if a chain of structures are wrritten in a known order in a binary file, that chain can be restored on the next startup of the program, if the reading takes place in the order specified so no parsing and type casting is needed
Am I right? Other than these things what else should I know?
The reason I want to clear these things out is because I have a file which contains the data collected and interpreted by a counter device from some sensors.
I believe this file is the binary footprint of the memory used to hold the recordings because I can't decipher the hexdump.
Now, I have a program to read this type of file and see the recordings and export them to a file in a human readable format (and no, it doesn't have a command line argument for this so that I can make a script). The thing is, I want to put all the recordings in a database and manipulate them further for all kinds of statistics and I don't want to waste time exporting whenever there is a data to be inserted.
I have no clue if what I'm saying has a bit of truth so I would be grateful if someone can correct or enlighten me on how I should approach this  ... is there a way to "parse" the binary file directly not knowing the types of the placeholders for the recordings?
Last edited by knob (2011-03-03 22:41:04)

You're right about what happens when a "text" file is written to disk. However, files ("text" or "binary") can contain anything, not necessarily a "memory footprint". (Edit: well, technically, anything you write to disk comes from memory... but it doesn't have to come from a struct or an array. It doesn't matter anyway...)
That said, as far as I understand it, your problem is that your "counter device" uses an undocumented file format and closed-source software. First step would be to ask the developer for documentation and source code.
If the developer doesn't want to give the required information or update the software as needed, you'll have to reverse-engineer the file format, either as previously suggested by "guessing" the contents, or by decompiling the executables that access the files.
Last edited by stqn (2011-03-04 17:36:59)

Similar Messages

  • Problem when streaming out a binary file

    Hi,
    I am trying to stream out a binary file to an output stream (not a file, but a socket). My file is a gzip file, and I was initially simply trying to open the
    file, read it to a a byte array, and writing it out to my output stream. However, I got corrupted data at my other end and it took me quite a bit of
    debugging hours to find out why.
    I tried writing to a file the same information I was writing to my output stream but, although my file was correct, my output stream still contained
    corrupted data.
    I think I have finally narrowed down my problem to the fact that when I try to write a 0x00 value to my output stream, everything gets ignored from this
    point until I write a 0x0a byte to my output stream. Obviously this produces corrupted data, since I need all the bytes of my binary file.
    If somebody can direct me as to how to write a 0x00 value to a socket output stream, I would really appreciate your input.
    This is a sample of my code (Right now I am writing byte by byte: not very efficient, but was the only way I found where I was getting a problem):
    // out is of type OutputStream
    if (Zipped){
         // In this case we just have to stream the file out
    File myFile = new File(fileName);
         FileInputStream inputFile = new FileInputStream(myFile);
         FileOutputStream fos = new FileOutputStream(new File("/tmp/zip.gz")); //zip.gz results in a good (not corrupted) file.
         ByteArrayOutputStream out1 = new ByteArrayOutputStream(1024);
         int bytes = (int)myFile.length();
         byte[] buffer = new byte[bytes];
         bytes = inputFile.read(buffer);
         while (bytes != -1) {
              out1.write(buffer,0,bytes);
              bytes = inputFile.read(buffer);
         inputFile.close();
         try {
              int count=0;
              bytes=out1.size();
              while (count<bytes){
                   fos.write(buffer,count,1);
    out.write(buffer,count,1); // when buffer[count] == 0x00, everything after it gets ignored until a 0x0a byte is written.
                   count++;
         } catch (IOException ioe) {
              SysLog.event("IOEXCEPTION: "+ioe);
         } catch (Exception e) {
              SysLog.event("EXCEPTION: "+e);
         fos.flush();
         fos.close();
         out.flush();
    out.close();
         return;
    }

    Actually, I had thought about that and for some time I tried getting rid of some of the header information in the gzipped file, and then I stopped doing that when I realized that part of the gzipped file is a CRC value which I believe is computed taking into account both the data of the file and the header information. If this is the case, then getting rid of part of the header would produce a corrupted file ... but then, I might be wrong in this issue.
    Anyway, to make my application more clear, what I am doing is writing the code for a cgi command which is suppossed to access information from a database, create an xml file, gzip it, and then send it to the client who requested the information.
    Therefore, what I am sending is an xml file (Content-Type: text/xml) in compressed format (Content-Encoding: gzip). Note that if I don't gzip the file and then send it uncompressed to the client, I have no problems. However, for me it is very important to gzip it because the size of the file can get very large and that would just take bandwidth unnecessarily.
    On the other hand, if I try to gunzip the file locally, I have no problem either (the file is not corrupt at the server's end). Therefore, my problem is when I stream it out.
    Any further help would be really appreciated!

  • Error when reading back a binary file

    Hello,
    I am writing out a binary file consisting of U32 arrays, packed strings, and clusters. I get error 116 when reading back. As long as I am synchronized on the correct data position why should LV care what I write to the file? In the example I write a simple 16 element array and a time stamp cluster. When reading back the array I get the error. What is the correct way to do mixed structures? Thanks.
    Attachments:
    file write.PNG ‏44 KB

    David,
    You can solve the problem in various ways. The easiest might be to modify the writer VI by wiring a True constant into the "header (F)" input of your first Write File node. That forces LabVIEW to include a four-byte header that specifies the length of the array you are writing.
    When you wire up the reader code the way you did, the length of the array you wire to the "byte stream type " input is irrelevant; by wiring nothing into the "count" input, you are implicitly telling LabVIEW to look for a header to determine the length of the array you are asking it to read. Because you didn't write any header, LabVIEW is interpreting the first four bytes of the array itself as a length. That length doesn't match the actual amount of data present in the datafile, so LabVIEW generates your error.
    An alternative solution would be to leave the writer unchanged and modify the reader VI: wire an I32 constant into "byte stream type" and wire a 16 into "count". The choice depends on what you prefer and whether or not these binary files need to be compatible with some other program or not.
    Another aside: you can dispense with your case that checks whether the datafile already exists. Just change the function input of the Open/Create/Replace to "create or replace" and wire a False constant into its "advisory dialog" input.
    Hope that's clear,
    John

  • Can Send ASCII Files Correctly But NOT Binary FIles (TCP)

    In this code right here we are sending in a file and outputting it to the same computer -- we are just trying to test to see if it works. We are breaking the file up into 128 bit packets into byte arrays which we convert to strings to append ACKs, etc.
    When we send and ASCII file it is no problem, and it come out perfectly correct.
    When we send a BINARY file and try view it in wordpad, everything looks the same except sometimes a block (original file) will be a ? (copied file). Yes, it will literally show up as a question mark.
    Our code is below -- any help would be AMAZING.
    // PROGRAMMING ASSIGNMENT #1 (TCPCLIENT.JAVA)
    // Names: Brendan G. Lim, Andrew Tilt, Naoki Kyobashi
    // Class: COMP 4320 - Introduction to Computer Networks
    import java.io.*;
    import java.net.*;
    public class TCPClientString {
    public static int fileSize = 0;
    public static int arrayLength = 0;
    public static byte[] leftOver;
    public static int lengthLeft = 0;
    public static void main(String[] args) throws Exception {
    String fileName = "test.jpg";
    String fileOut = "copy.jpg";
    byte[][] splitArray;
    byte[] sendPacket;
    int ackNum = 1;
                   int fileSizeOut = 0;
    int windowStart = 0;
    int windowEnd = 0;
    int totalAcks = 0;
    //String serverAddress = args[0];
    // final int BUFFER_SIZE = 128;
    // byte[] buffer = new byte[BUFFER_SIZE];
         //Socket socket = new Socket (serverAddress, 6190);
    BufferedInputStream in = new BufferedInputStream(new FileInputStream(fileName));
    // //BufferedOutputStream out = new BufferedOutputStream(socket.getOutputStream());
    BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(fileOut));
    int len = 0;
    splitArray = createFileArray(fileName);
    boolean[] acksRecieved = new boolean[arrayLength];
         for(int i=0; i < arrayLength; i++)
    acksRecieved[i] = false;
         if (arrayLength >= 5)
         windowEnd = 4;
         else
         windowEnd = arrayLength - 1;
    System.out.print(arrayLength);     
    if (arrayLength != 0)
    while(totalAcks != arrayLength)
    for(int l=windowStart; l <= windowEnd && l < arrayLength; l++)
    if (acksRecieved[l] != true)
    sendPacket = getPacket(splitArray, l, l, 128);
    // System.out.println(windowStart);
    //      System.out.println(windowEnd);
    out.write(sendPacket);
                             fileSizeOut += 128;
    acksRecieved[l] = true;
         totalAcks++;
    while (acksRecieved[windowStart] == true && windowStart < arrayLength -1)
         windowStart++;
              if (windowEnd < arrayLength-1)
              windowEnd++;
    if (lengthLeft != 0)
    // System.out.println("did this");
    sendPacket = getPacket(leftOver, ackNum, lengthLeft);
    out.write(sendPacket);
                        fileSizeOut += lengthLeft;
    // System.out.println("\n\nSending File...");
    // while((len = in.read(buffer)) > 0 )
    // out.write(buffer, 0, len);
    in.close();
    out.flush();
    out.close();
    //socket.close();
                   System.out.println("\n \n" fileSize " " +fileSizeOut);
    System.out.println("\n****File Transfered****\n\n");
    public static byte[][] createFileArray(String fileName)throws Exception
    int arraySize = 128;
    FileInputStream fr = new FileInputStream(fileName);
    fileSize = fr.available();
    System.out.println(fileSize);
    arrayLength = fileSize/128;
    int currentPos = 0;
    int bytesRead = 0;
    byte[] msg = new byte[fileSize];
    int counter = 0;
    fr.read(msg);
    byte[][] brokenUp = new byte[arrayLength][arraySize];
    int msgPos = 0;
    if(fileSize >= 128)
    for (int j = 0; j < arrayLength; j++)
    for (int i = 0; i < 128 && msgPos < fileSize; i++)
    brokenUp[j] = msg[msgPos];
    msgPos++;
    if (fileSize%128 != 0)
    lengthLeft = fileSize%128;
    leftOver = new byte [lengthLeft];
    for (int j = 0; j < lengthLeft; j++)
    for (int i = 0; i < 128 && msgPos < fileSize; i++)
    leftOver[i] = msg[msgPos];
    msgPos++;
    return brokenUp;
    public static String getPacket(byte[][] brokenMatrix, int position, int ack, int length)
    byte[] packet = new byte[128];
    String pack;
    String finalPack;
    for (int i = 0; i<128; i++)
    packet[i] = brokenMatrix[position][i];
    pack = new String(packet, 0, 128);
    // finalPack = ack+"**"+"Address1"+"**"+"Address2"+"**";//+pack;
    // System.out.print(pack);
    //packet = pack.getBytes();
    return pack;
    public static String getPacket(byte[] brokenMatrix, int ack, int length)
    byte[] packet = new byte[128];
    String pack;
    String finalPack;
    for (int i = 0; i<length; i++)
    packet[i] = brokenMatrix[i];
    pack = new String(packet, 0, length);
    // //finalPack = ack+"**"+"Address1"+"**"+"Address2"+"**"+pack;
    //packet = pack.getBytes();
    return packet;

    Please use [code][co[/i]de] tags when posting code.
    It's too hard to see unformatted, but from your description I'd suppose you have a call to String#getBytes() somewhere. This method uses the default platform charset, and if they're different, you'd get different results. On the other hand, ASCII chars often have the same encoding (byte), which'd explain why it works with text files.
    You should use the String#getBytes(String) method with a consistant charset, like UTF-8.
    In fact, you shouldn't have to create Strings at all, no, let me rephrase that: you shouldn't pass any Strings around if you'Re sending binary data (nor for the text data, btw.).

  • Complexity of searhing in binary files

    Hello!
    I have question regarding complexity when searching in a binary file. I have a app that needs to perform a search for a certain string in a large binary file (> 1Gb). For the moment, I read one line of the file into a byte array, convert it to a string and than look for any matches with indexOf. This, however, is (yeah, you guessed right..) an extremly slow search algorithm. By the time I wrote it was a good option, but now I am thinking of re-making it.
    So my question, is it any idea to try something else? Will it be faster? Is it even possible? Can one use regexp in binary files? A bit confused in this matter...
    All ideas are welcome!

    Yes, it true. ASCII characters are readable. Maybe i
    should have used another word for "line". 1 line = 1
    frame ie. each frame have a line feed attached.
    The tricky part is that each frame contains a 4byte
    preamble followd by a unique identifier, which I must
    keep track of. That is, a search hit in one frame
    should return the identifier of the frame.
    Thanks for the tip about the search algorithms!
    I bealive the qustion is: How do I find a specific
    string in a byte array?Convert the search string to a byte array and then search for that byte array in the file byte array. This way you are only converting once.

  • When I try to download a software up date for another program in Binary File (eg CCleaner or a Microsoft file) in FireFox they all just come up in the download window as 'Cancelled'? When I go to the destination folder the download file icon is there wit

    When I try to download a software up date for another program in Binary File (eg. C Cleaner or a Microsoft file) in Firefox they all just come up in the download window as 'Canceled'? When I go to the destination folder the download file icon is there with 0 Kb's for size...Then when I click 'RETRY' the download it appears to download fully, but when I go into the destination folder the downloaded file is not there? I need to know if there is something in the Firefox options to resolve this problem or much more!!

    If all .exe files are blocked, antivirus software is most likely configured to block them. See if you can download these with your antivirus and/or security software disabled.

  • Firefox crashed when I try to download a binary file

    In this instance it is IE8 which I am trying to download (for business purposes I need Activex controls). When I currently open IE it runs as a process rather than an application. I have tried to download IE8 and google's Chrome but Firefox crashes as soon as I try to save the Binary files.

    Sorry you are having problems. Can you give an example preferably of some small publicly available file and the site you are trying to download it from ?
    As a simple example of a download (ok it is a .png image file not not a .exe file) but can you try to download a copy of your avtar/icon, as used on these forums. In Windows one method is that you right click & should get an option save. <br/> Mine alongside uses the link
    * https://support.mozilla.com/media/uploads/avatars/avatar-257447.png
    Are you able to download such an image, then see it in your download manager, and find it on your computer.
    Once you have got Firefox to save your binary file you can use it. In the case of the .exe file you are trying to download that should be usable as intended with your Windows Operating System, the avatar also should be easily opened and viewed.
    P.S.
    You could try installing the add-on https://addons.mozilla.org/en-US/firefox/addon/opendownload-10902/ if you wished to adapt Firefox to run .exe files instead of just save them.

  • UTL_FILE write_error when writing large binary files to unix os

    I am trying to write large files to a folder in unix from a table containing a BLOB object. The procedure below is called by another procedure I have written to do this. It works in windows environment fine with files up to 360MB. When I run this exact same procedure in UNIX I get an initialization error. When I change the WB in the fopen call to W it works. I can store all the files I want up to 130MB in size. The next size larger file I have is 240MB and it fails after writing the first 1KB passing the utl_file.write_error message. If someone can help me to diagnose the problem, I would really appreciate it. i have been trying everything I can think of to get this to work.
    Specifics are, the windows version is 10GR2, on unix we are running on Sun Solaris 9 using 9iR2
    PROCEDURE writebin(pi_file_name IN VARCHAR2, pi_file_url IN VARCHAR2, pi_file_data IN BLOB)
    IS
    v_file_ref utl_file.file_type;
    v_lob_size NUMBER;
    v_raw_max_size constant NUMBER := 32767;
    v_buffer raw(32767);
    v_buffer_offset NUMBER := 1;
    -- Position in stream
    v_buffer_length NUMBER;
    BEGIN
    -- WB used in windows environment. W used in unix
    v_lob_size := dbms_lob.getlength(pi_file_data);
    v_file_ref := utl_file.fopen(pi_file_url, pi_file_name, 'WB', v_raw_max_size);
    v_buffer_length := v_raw_max_size;
    WHILE v_buffer_offset < v_lob_size
    LOOP
    IF v_buffer_offset + v_raw_max_size > v_lob_size THEN
    v_buffer_length := v_lob_size -v_buffer_offset;
    END IF;
    dbms_lob.READ(pi_file_data, v_buffer_length, v_buffer_offset, v_buffer);
    utl_file.put_raw(v_file_ref, v_buffer, TRUE);
    v_buffer_offset := v_buffer_offset + v_buffer_length;
    END LOOP;
    utl_file.fclose(v_file_ref);
    END writebin;
    Message was edited by:
    user599879

    check if this cample code helps -
    CREATE OR REPLACE PROCEDURE prc_unload_blob_to_file IS
    vlocation      VARCHAR2(16) := ‘LOB_OUTPUT’;
    vopen_mode     VARCHAR2(16) := ‘w’;
    bimax_linesize NUMBER := 32767;
    v_my_vr        RAW(32767);
    v_start_pos    NUMBER := 1;
    v_output       utl_file.file_type;
    BEGIN
    FOR cur_lob IN (SELECT vmime_type,
    blob_resim,
    vresim,
    dbms_lob.getlength(blob_resim) len
    FROM tcihaz_resim a
    WHERE rownum < 3 -- for test purposes
    ORDER BY a.nresim_id) LOOP
    v_output := utl_file.fopen(vlocation,
    cur_lob.vresim,
    vopen_mode,
    bimax_linesize);
    dbms_output.put_line(’Column length: ‘ || to_char(cur_lob.len) || ‘ for file: ‘ ||
    cur_lob.vresim);
    v_start_pos := 1;
    IF cur_lob.len < bimax_linesize THEN
    dbms_lob.READ(cur_lob.blob_resim,
    cur_lob.len,
    v_start_pos,
    v_my_vr);
    utl_file.put_raw(v_output,
    v_my_vr,
    autoflush => TRUE);
    dbms_output.put_line(’Finished Reading and Flushing ‘ || to_char(cur_lob.len) ||
    ‘ Bytes’ || ‘ for file: ‘ || cur_lob.vresim);
    ELSE
    dbms_lob.READ(cur_lob.blob_resim,
    bimax_linesize,
    v_start_pos,
    v_my_vr);
    utl_file.put_raw(v_output,
    v_my_vr,
    autoflush => TRUE);
    dbms_output.put_line(’Finished Reading and Flushing ‘ || to_char(cur_lob.len) ||
    ‘ Bytes’ || ‘ for file: ‘ || cur_lob.vresim);
    END IF;
    v_start_pos := v_start_pos + bimax_linesize;
    WHILE (v_start_pos < bimax_linesize) LOOP
    -- loop till entire data is fetched
    dbms_lob.READ(cur_lob.blob_resim,
    bimax_linesize,
    v_start_pos,
    v_my_vr);
    utl_file.put_raw(v_output,
    v_my_vr,
    autoflush => TRUE);
    dbms_output.put_line(’Finished Reading and Flushing ‘ ||
    to_char(bimax_linesize + v_start_pos - 1) || ‘ Bytes’ ||
    ‘ for file: ‘ || cur_lob.vresim);
    v_start_pos := v_start_pos + bimax_linesize;
    END LOOP;
    utl_file.fclose(v_output);
    dbms_output.put_line(’Finished successfully and file closed’);
    END LOOP;
    END prc_unload_blob_to_file;
    set serveroutput on
    set timing on
    create or replace directory LOB_OUTPUT as ‘/export/home/oracle/tutema/’;
    GRANT ALL ON DIRECTORY LOB_OUTPUT TO PUBLIC;
    exec prc_unload_blob_to_file ;
    Column length: 3330 for file: no_image_found.gif
    Finished Reading and Flushing 3330 Bytes for file: no_image_found.gif
    Finished successfully and file closed
    Column length: 10223 for file: OT311.gif
    Finished Reading and Flushing 10223 Bytes for file: OT311.gif
    Finished successfully and file closed
    PL/SQL procedure successfully completedWith 9iR2 PLSQL can write binary files using UTL_FILE put_raw function, prior to Oracle9iR2 you will need to create an external procedure with Java, C, VB or some 3gl language.
    Some references -
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:6379798216275
    Oracle® Database PL/SQL Packages and Types Reference 10g Release 2 (10.2)
    UTL_FILE - http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_file.htm#sthref14095
    http://psoug.org/reference/dbms_lob.html
    Metalink Note:70110.1, Subject: WRITING BLOB/CLOB/BFILE CONTENTS TO A FILE USING EXTERNAL PROCEDURES

  • When I do a download, it is saved to a Binary File. Where are these files stored & how do you uninstall a program you don't want to keep ?

    I use firefox, when I download a file from another website, there is a pop-up that shows the name of the download, which shows it is saved to a binary file, (don't know what a binary file is) but my question is where are the binary files stored on my computer & if I can uninstall it if I don't want to keep it.

    read basic about svchost:
    [http://support.microsoft.com/kb/314056/en-us A description of Svchost.exe in Windows XP Professional Edition]
    find svchost services:
    [http://webcache.googleusercontent.com/search?q=cache:pa9PdGlHr0sJ:www.bleepingcomputer.com/tutorials/list-services-running-under-svchost.exe-process/+what+is+svchost.exe&cd=12&hl=el&ct=clnk&gl=gr a way how to determine what services are running under a SVCHOST.EXE process]
    One Temporary Solution is to disable the Windows Automatic Update service:
    http://ask-leo.com/how_do_i_fix_this_high_cpu_usage_svchost_virus_or_whatever_it_is.html
    (no '''it is not''' a virus)
    (works for me)
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • Protected mode message comes up and when I try to open files it says it encountered an error and to check online.. i can not open any files now

    Within the past week I have been getting messages when trying to open pdf files " that its in protected mode and can not open"
    I deleted adobe and reinstalled directly from Adobe.com and now I can not open any file with a message it has encountered an error
    and will check online for solution. Please assist as no files will open now
    This is details of error
    Problem Event Name:    APPCRASH
      Application Name:    AcroRd32.exe
      Application Version:    11.0.10.32
      Application Timestamp:    547e9779
      Fault Module Name:    StackHash_147f
      Fault Module Version:    0.0.0.0
      Fault Module Timestamp:    00000000
      Exception Code:    c000041d
      Exception Offset:    77a011f1
      OS Version:    6.1.7601.2.1.0.256.48
      Locale ID:    1033
      Additional Information 1:    147f
      Additional Information 2:    147ff66574b08dc93180d912e60eb897
      Additional Information 3:    c48b
      Additional Information 4:    c48be403c52ec6c06778481aaa8948d8
    Read our privacy statement online:
      http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
    If the online privacy statement is not available, please read our privacy statement offline:
      C:\Windows\system32\en-US\erofflps.txt

    Can you open Adobe Reader by itself?  If so, try to disable Protected Mode [Edit | Preferenes | Security (Enhanced)].

  • Error when Write/read Cluster in binary file.

    hi all,
    I implemented a code (using the Labview example) to save and read cluster data (see attached file). The write part works properly but when I want to read the file, there is an error : "Error 4 occurred at Read from Binary File in main_save_data_V2.vi; LabVIEW: End of file encountered'.
    BUT the data are correctly open. Why is there such message? any suggestions?
    thank you.
    Cedric
    Attachments:
    main_save_data_V2.vi ‏19 KB

    Instead of predicting how many clusters to read, just set the count in the binary read to -1.  That will read all that it can and I got no error.  Here is all you need in order to read the file.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Read clusters.png ‏12 KB

  • When trying to download it says binary file download and it starts but doesnt finish

    as i try to download the little box pops up and says binary file save or cancel . So i save and it starts downloading the little line starts across and it gets to the end and disappears and leaves a empty box and nothing else happens

    Which player? Do you mean Flash, or maybe the Windows Media Player plugin?
    * http://www.adobe.com/products/flashplayer/distribution3.html
    * https://support.mozilla.org/en-US/kb/play-windows-media-files-in-firefox
    You have to run the installers with Firefox closed.

  • I have uninstalled and reinstalled the most current edition of Adobe Reader, including the patch. When I open a PDF file, the screen is first grey, then viewable, but the message "Adobe Reader has stopped working" comes up. How do I remedy this?

    I have uninstalled and reinstalled the most current edition of Adobe Reader (11.9), including the patch. When I open a PDF file, the screen is first grey, then viewable, but then the message "Adobe Reader has stopped working" comes up. How do I remedy this?

    RR,
    One thing often tried first is to create a new document and File>Place the corrupted one to see how much may be rescued that way (remember to tick Paste remembers Layers in the Layer palette flyout/dropdown first, and to untick it afterwards).
    Here is a website where you can see whether it can rescue the file, and if it can, you may pay for a subscription to have it done,
    http://www.recoverytoolbox.com/buy_illustrator.html
    and another similar website,
    http://markzware.com/adobe-software/fix-illustrator-file-unknown-error-occurred-pdf2dtp-fi le-recovery/
    As far as I remember, the former is for Win and the latter for Mac.
    Here are a few pages about struggling with it yourself:
    http://daxxter.wordpress.com/2009/04/16/how-to-recover-a-corrupted-illustrator-ai-file/
    http://helpx.adobe.com/illustrator/kb/troubleshoot-damaged-illustrator-files.html
    http://kb2.adobe.com/cps/500/cpsid_50032.html
    http://kb2.adobe.com/cps/500/cpsid_50031.html
    http://helpx.adobe.com/illustrator/kb/enable-content-recovery-mode-illustrator.html
    Failing a full recovery, hopefully you have one or more earlier versions and/or bits of artwork saved before it happened.

  • When I try to download a .exe file extension, Firefox designates it as a binary file which is useless to me.

    using Windows 7 with i3 processor all the latest updates. Firefox is the ONLY browser that gives me this problem. I should not have to turn off my antivirus or go into my config files, write code or anything to have this simple task to work. If I buy a download for a program and get one shot at the download which is an executable file, I should not have it come up as a Binary file and can not use it to load the program that I just ordered.

    Sorry you are having problems. Can you give an example preferably of some small publicly available file and the site you are trying to download it from ?
    As a simple example of a download (ok it is a .png image file not not a .exe file) but can you try to download a copy of your avtar/icon, as used on these forums. In Windows one method is that you right click & should get an option save. <br/> Mine alongside uses the link
    * https://support.mozilla.com/media/uploads/avatars/avatar-257447.png
    Are you able to download such an image, then see it in your download manager, and find it on your computer.
    Once you have got Firefox to save your binary file you can use it. In the case of the .exe file you are trying to download that should be usable as intended with your Windows Operating System, the avatar also should be easily opened and viewed.
    P.S.
    You could try installing the add-on https://addons.mozilla.org/en-US/firefox/addon/opendownload-10902/ if you wished to adapt Firefox to run .exe files instead of just save them.

  • Binary file corrupted when downloading

    Hi. I'm trying to download binary files using a JSP. This is my code:
    <%
         response.setContentType(report.getContent_type());
         response.setHeader ("Content-Disposition", "attachment;filename=\""+report.getNombre()+"\"");
         byte[] file = report.getFile();
         ServletOutputStream sos = response.getOutputStream();                         
         sos.write(file);
         sos.close();
    %>
    It seems to work, but when i'm going to open the downloaded file, it's corrupted, and when I compare it with the original one, all bytes that follow the first '\0' character have been replaced by '\0'. The file size is the same, but not the content.
    I'm using Websphere as application server. Maybe this problem is related with the server, or maybe I'm doing something wrong. Any ideas?
    Thanks.

    I'm surprised that you didn't event get a IllegalStateException. Rather move all your logic to a servlet, jsps usually add whitespace where scriplets were and could corrupt your content.

Maybe you are looking for

  • Battery loses Charge while plugged in

    When I run procesor intensive apps, my battery begins to drain even when the charger is plugged in. The charger just stays amber color while the battery percentage slowly decreases. It also makes a ton of noise while charging. This never happened unt

  • How do you get your music on the phone?

    I can't get my music on my iPhone. I tried to put music off of a cd on it and when that didn't work I bought some from the itunes store but i still can't get any of them to get onto my phone. How do you get it to work??

  • BPM and Multimapping

    Hi All, I have a scenario FILE-XI-SAP.I am using file adapter and RFC adapter.I have to do GL and AR posting in sap thru one BAPI.I am getting one data file.Depending on data in one of the field I have to do the posting either GL or AR. I dont want t

  • Problem scrolling up n down in touchpad

    i've installed Win7 and i don't know how to bring back the scrolling option in my touchpad, i know its got something to do with the Device Manager, cuz i found a solution once and i forgot it. please help, thanks

  • Exception "java.lang.UnsatisfiedLinkError" with a library

    Hi, I'm using Avetana Bluetooth with linux. I have no compilation errors but I get this error when executing:      Could not find own library libavetanaBT.so. Will try from ld.library.path Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError