B2B sending binary files

Dear All
I am new in oracle B2B
i need to develop SOA Application including BPEL Process to call B2B services
to transfer file and insert the file content into data base
my scenario is
i have two trading partner  . host partner receive a binary file(xls,txt) from remote partner
used custom document protocol 
how do the configuration for b2b server
and how develop soa application

I do not quite understand why you want to use B2B for this. BPEL is capable of writing and reading files. I would recommend BPEL only and not the use of B2B.

Similar Messages

  • Send binary file using xml

    Hi all,
    I've got an application wich currently sends xml messages through sockets between server and client. Now, I'd like to be able of sending binary files (jpegs and other images...) as some content of these files. Is it possible with CDATA? Do you know any URL with an example or something?
    thanks a lot!

    This is a little example that shows the solution I adopted.
    Two classes, a server and a client, execute the server in a given port and the client with "localhost" as ip and the same port as the server.
    Ex: java Server 5555
    java Client localhost 5555
    the code:
    import java.net.*;
    import java.io.*;
    public class Server {
        public static void main(String[] args) {
            ServerSocket serverSocket = null;
            if(args.length!=1){
                System.out.println("ERROR: java Server <port>");
            } else {
                   // Create listening socket
                   try {
                        serverSocket = new ServerSocket((new Integer(args[0])).intValue());
                   } catch (IOException e) {
                        System.out.println("ERROR: not possible to listen on the specified port");
                        System.exit(1);
                   // Create wait for connection
                   Socket clientSocket = null;
                   try {
                        clientSocket = serverSocket.accept();
                   } catch (IOException e) {
                        System.err.println("ERROR: Accept failed.");
                        System.exit(1);
                   try{
                          // Get the output channel
                        PrintWriter out = new PrintWriter(clientSocket.getOutputStream(), true);
                        // Send a xml message
                        out.print("<?xml version=\"1.0\" encoding=\"UTF-8\"?><FOO><VAR message=\"ugly harcoded XMLmessage\"/></FOO>\0");
                        out.flush();
                        out.close();
                        clientSocket.close();
                        serverSocket.close();
                   } catch(IOException IOE){
                        System.out.println("ERROR: on send");
    import java.io.*;
    import org.w3c.dom.Document;
    import java.net.*;
    import javax.xml.parsers.SAXParserFactory;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import org.xml.sax.SAXException;
    import org.xml.sax.InputSource;
    public class Client {
         public static void handleIncomingMessage(Document doc){
            System.out.println("DO WHAT YOU WANT WITH THE XML!");
        public static void main(String[] args){
            BufferedReader in = null;
            Socket socket = null;
            if(args.length!=2){
                System.out.println("ERROR: java Client <ip> <port>");
            } else {
                String ip = args[0];
                int port = (new Integer(args[1])).intValue();
                   // Open a socket to the server
                try {
                        socket = new Socket(ip,port);
                   } catch (UnknownHostException e) {
                        System.out.println("ERROR: Unknow host!");
                        System.exit(1);
                   } catch (IOException e) {
                        System.out.println("ERROR: I/O error");
                        System.exit(1);
              try {
                // Get the input channel
                   in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
            } catch (IOException e) {
                System.err.println("ERROR: I/O error");
                System.exit(1);
              // Create a DocumentBuilder to convert the socket's incoming String
            // to a XML parsed Document
              Document XMLmessage =null;
            DocumentBuilder builder = null;
            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              try{
                   builder = factory.newDocumentBuilder();
            } catch (ParserConfigurationException PCE) {
                System.out.println(PCE.toString());
              try{
                String messageRead = "";
                char caracter;
                StringBuffer sb = null;
                   // Read from the socket until \0
                   sb = new StringBuffer();
                   caracter =(char)in.read();
                   while(caracter != '\0'){
                        sb.append(caracter);
                        caracter = (char)in.read();
                   messageRead = sb.toString();
                   System.out.println("Recieved: "+messageRead);
                // Parse the read message
                   try{
                        XMLmessage = builder.parse(new InputSource((Reader)new StringReader(messageRead)));
                        // Work with it
                        handleIncomingMessage(XMLmessage);
                   } catch(IOException IOE){
                        System.out.println(IOE.toString());
                   } catch(SAXException SE) {
                        System.out.println(SE.toString());
              } catch(IOException IOE){
                   System.out.println("ERROR: I/O error");
    }hope it helps!
    any comment about the code will be welcome

  • Send binary files from SAP System to SAP XI/PI

    Dear experts,
    in our SAP ERP-System we have a link to JPG files which are stored in an archive. We want to send these files with some other information to our SAP XI and then store them on a file server. Is there a way to send a MIME attachment via RFC? Or is there another way to send binary files from SAP ERP to SAP XI? We want to avoid polling the files on OS level.
    Thanks and regards,
    David

    Most recommended way is to go for ABAP proxies. They support attachments.
    Regards,
    Prateek

  • Sending binary file via RS232 connection

    Hi,
    I want to send a binary file via RS232 connection but I have troubles reading the .bin file and then converting the data to string in order to send it via RS232. Any ideas how i can deal with this?
    Thanks in advance,
    IG. 

    It is hard to help then you do not post any code. I suggest you go to the toolbar then help. Then you select Find Examples. Search for files. Also since you are new to Labview always have context help enabled. Both tools are important if you want to learn Labview. Feel free to post again if you are stuck.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • How to use  the same channel to send a file and messages to the server

    I'm trying to develop a simple program that will send and receive files from the server and in the same time I need to communicate with the server through the messages
    I'm using TCP Socket
    my problem is
    I have only one channel
    so, I have no option, either I can use it for sending the file itself or sending the message .. but not both !
    my question is : How can I use the same channel for sending and receiving (file & message)
    I would appreciate for any clue or hint
    best

    kajbj wrote:
    kmarwani wrote:
    Thanks for reply
    yes, that what I'm thinking to do
    but, in case of sending binary file, if I attached a flag on its header, will it corrupt the file ?
    bestThe other end would of course need to decode the messages that you get, and only write the "data" part to the file.Thanks
    I'm gonna try to hard-code what you suggest and i will post what happen with me here
    even though I'm not sure how can I add header to a binary file and remove it from the file at other end. (coz I read it as stream and send as array without touching its contents)
    this how I'm sending the file
    ConnSocket = CSocket.accept();
    ToClient = new DataOutputStream(ConnSocket.getOutputStream());
    File myFile = new File("abc.jpg");
    FileInputStream myFileInStream = new FileInputStream(myFile);
    BufferedInputStream mybuffInStream = new BufferedInputStream(myFileInStream);
    myBytArray = new byte[(int) myFile.length()];
    mybuffInStream.read(myBytArray, 0, myBytArray.length);
    ToClient.write(myBytArray, 0, myBytArray.length);
    ToClient.flush();
    myFileInStream.close();best

  • Binary file attachment

    Hi All,
    Can Oracle B2B accept binary file attachments in message payload?

    Hi Raj,
    B2B can be used to transfer binary documents or binary attachments. For attachment, you need to use proper content type value. You may refer the supported values here -
    http://www.b2bgurus.com/2007/11/attachment-feature-in-rosettanet-using.html
    If it is required to receive docs as body of message, then for binary docs (pdf and jpeg), it may be done by enabling binary transfer at b2b -
    http://www.b2bgurus.com/2008/10/pgp-encrypted-file-transfer.html
    Let us know if you need any other info.
    Regards,
    Anuj

  • Passing binary files in webservices

    I need send binary files in my webservice. And I need it can be used by non java clients. Can I do it? Do you have any example?
    Thankss
    http://www.hhdirecto.net
    http://www.dechiste.com

    Umm.. have you tried it?
    In order to send any file via a web server, the server maintains a list of MIME types that map document types (e.g. text/plain, image/jpg, video/quicktime, and many, many more).
    Additionally, Mac OS X Server ships with an apache module, mime_magic which attempts to automatically determine mime types on more than just the filename suffix (which is the traditional way of doing it).
    Therefore, the server should be able to automatically detect the file type, so just create a link for it on your page and click it. If it doesn't work, use Server Admin to check that modmimemagic is enabled, or add a specific mime type for your document.

  • How to send the entire binary file as Content in mail adapter

    Hi,
    I have the below scenario:
    A binary file is there on the XI server and this is more than 1 lines.
    This file needs to be sent across to certain email addresses via the XI interface.
    I have made the design and config and now get the the mail but so far not been able to get the file contents.
    The requiremnet is to send the entire file contents in the mail so that they appear in the body of the received mail.
    How do i do it?
    Can you please advice.
    Regards,
    Archana

    Hi,
    I am giving below the incoming mesasge details and the outgoing Mail message details.
    Sender File Adapter:
    Mesasge Content/Payload:
      <?xml version="1.0" encoding="utf-8" ?>
    - <ns:MT_Ack_Mail_In xmlns:ns="Urn:Serco-com:interface:Banking:HSBC:FileTransfer">
    - <Content>
    - <Mail>
      <Details>UNBUNOA:3HEXAGON-ABCABC10268002081201:2152+692125127893</Details>
      </Mail>
    - <Mail>
      <Details>UNH1CONTRL:2:2:UN:APACS</Details>
      </Mail>
    - <Mail>
      <Details>UCI1000246720ABC10268002HEXAGON-ABC4+C09</Details>
      </Mail>
    - <Mail>
      <Details>UNT31</Details>
      </Mail>
    - <Mail>
      <Details>UNZ1692125127893</Details>
      </Mail>
      </Content>
      </ns:MT_Ack_Mail_In>
    Receiver Mail Adapter:
    Message Content/Payload:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
      <Subject>ME-Acknowledgement</Subject>
      <From>email of from</From>
      <To>my email</To>
      </ns1:Mail>
    I need to map the contents of the incoming payload Contents/Mail/Details (all the 5 instance) to outgoing Missing Content (after To field).
    If it can be in Mail body, then it would be best else please suggest what other option can I use?
    Also, If i want the file name to be in the subject of the mail, is that possible to be picked up in the configuration?
    Please help.
    Regards,
    Archana

  • Word saving documents as binary files- can't send documents as attachments

    I've had my Macbook for about 9 months. During the first 6 months, I could send attachments via email perfectly fine. After about 6 months, something happened and the files could no longer be opened after being attached. I tried sending some attachments to myself and found out that the documents were being sent as binary files.
    I also backed up my documents onto an external hard drive. When I opened the documents on a Windows computer, the Word documents that I created during the first 6 months could be opened. However, the most recently created documents couldn't be opened by my computer.
    I decided to do an erase and install on Saturday. Afterwards, Word was working fine and I was able to send documents as attachments. This morning (Tuesday) I tried to send attachments again and it didn't work! Again, the documents were binary files.
    I'm not sure what to do because it was working fine for three days, but now it's not working anymore. I think something must have happened during those three days that corrupted my computer?
    Has anyone had a similar problem? Can anyone help?
    Sorry I know it was a long post but I wanted to give more information in case it would give some clues. I feel I should add that I've been having quite a few problems with my Macbook, e.g. screen freezing, DMGs not loading properly, getting some pop ups
    Message was edited by: MissIndecisive
    Also wanted to add that I've had my logicboard replaced recently because of problems such as freezing, so I don't think it should be a hardware problem.

    Since Word is not an Apple product, you'll get better response if you use a forum dedicated to Microsoft's Mac products such as <http://groups.google.com/groups/dir?sel=33607053> rather than an Apple forum that focuses on compatibility between Macs and Windows.
    Be sure to search the forum first in case someone has already had a similar question answered. You'll get your answer faster this way. Post your question in the forum if you don't find anything that helps you

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

  • B2B 11g - Managing File name from a JMS queue.

    Hi,
    I have configured a Listening Channel to use Generic File 1.0 (to poll a file from local dir) and send it to a Trading Partner. In B2B User Guide it has been said to have the file name as %TO_PARTY%_%DOCTYPE_NAME%_%DOCTYPE_REVISION%_%MESSAGE_ID%_TIMESTAMP.txt. Extension can be anything (txt, dat, etc).
    It is necessary to have this format? What if I want to send a file with name say ABC.txt*.
    How will I manage this file name pattern if I have to read the file content from a JMS queue (and then send the file to the Trading Partner).
    Thanks,
    Sanjay
    Edited by: Sanjay Bharatiya on 24-Nov-2010 12:07 PM

    Hi Anuj,
    I set up AS2 in my local environment and tested it. I do not get the desired name of the file. The wire message seems to be ok. Following is the Tranport Header present in the wire message from the sender B2B server:
    Message-ID=<ID:<172014.1291742389684.0>@kg_certificate> Content-Transfer-Encoding=binary MIME-version=1.0 From=kg_certificate Disposition-Notification-To=[email protected] AS2-To=exel_certificate User-Agent=AS2 Server Date=Tue, 07 Dec 2010 17:19:50 GMT AS2-Version=1.1 AS2-From=kg_certificate Content-Disposition=attachment; filename=J7Q9A7.txt Content-Type=*application/octet-stream*
    Following is the Transport Header present in the wire message from the receiver B2B server:
    AS2-To=exel_certificate TE=trailers, deflate, gzip, compress Date=Tue, 07 Dec 2010 17:19:50 GMT AS2-Version=1.1 Accept-Encoding=gzip, x-gzip, compress, x-compress AS2-From=kg_certificate Content-Transfer-Encoding=binary Disposition-Notification-To=[email protected] Message-ID=<ID:<172014.1291742389684.0>@kg_certificate> Content-type=application/octet-stream MSG_RECEIVED_TIME=Tue Dec 07 12:20:39 EST 2010 ECID-Context=1.0000In1qASoEoI05nzp2iZ1Cxam9001KGU;kXCmv0 MIME-version=1.0 User-Agent=AS2 Server Oracle HTTPClient Version 10h Content-Disposition=attachment; filename=J7Q9A7.txt Content-Length=211 Host=10.32.200.207:8001 Connection=Keep-Alive, TE From=kg_certificate
    Things look good here but when the file is written to a directory the file name is of the form <sendername>_<doctypename>_<docrevision>_<msgtype>_*****.dat. I do not get the desired file name (J7Q9A7.txt). What am I missing?
    Thanks,
    Sanjay
    Edited by: Sanjay Bharatiya on 7-Dec-2010 11:59 AM

  • How to open and read binary files?

    How do I open and read Binary files?

    Did you  look on The Unarchiver's web site where it has a link to older versions? http://theunarchiver.googlecode.com/files/TheUnarchiver3.2_legacy.zip
    The best thing to do is ask your friends what programs they used to produce these files, or at least what format files they are producing.  Otherwise it's like being shown a car and given a bundle of 200 keys with no idea to which one to use, or even if any of them work with that car.
    Using The Unarchiver will likely not do anything because it too will not know what format files are involved, and they may not even been in an archived format.  If they sent you a Word file without telling you (a favorite of Windows users to do  -- it drives me crazy when they could have just sent them in plain text), The Unarchiver won't open them.  If it's a picture file then using Hexedit will just show you a bunch of unintelligible stuff as shown in an earlier post, though you may see a line of text providing a hint.
    As I said earlier, often .bin may be an executable program which needs another program to actually interpret it.  That's what Java is trying to do.  Still, it may think it can execute the file, but it is highly unlikely somebody would send you an executable program (and if they did I would not trust it).  For all you know it may be a Windows virus.

  • Deleting a single element from a binary file

    I am working on a server application that must keep track of the messages that have been sent but not responded to.  After I send a message, I append it to an array cycling through an uninitialized shift register and I write it to the end of a binary file.  When I receive a response to a message, which was probably but not necessarily the first message sent, I delete that message from the array and the file.  This allows me to look up entries quickly but also to maintain a permanent record of what messages have been sent and not responded to.
    Basically, I need an intelligent way to make a file, or any other permanent storage medium, act effectively like a queue.  The problem with the current implementation is that when I delete one variable-sized entry from the file, I need to move all subsequent entries, which are usually all of the other entries in the file, forward in memory to take its place.  Is there a way to get around recopying the majority of the file or to implement this entire thing more intelligently?

    You can organize your datafile as a list. For example In this list any record consists of a fixed size data field and referencies (file position f.e.) to the next record and  to the previous record. You can then rewrite the record-have-to-be-deleted with new one, or you can "delete" this record modifiyng the referencies of the "previous" and the "next" records. When you will add a new record you can write one at this "free" place.
    The other way is to manage two files. The first one contains your data record by record. The second one contains the numbers of the records and the corresponding datafile positions or record counter. This second file can be very small and easy-to-manage. It can represent the only record's queue position in the datafile. You can rewrite your records, mark them as deleted without moving large portions of data.
    You can setup the datafile capacity in "number of records" term.
    Additionally it is possible to use the records with variable length but it will be much more dificult. 
    Best regards, Evgeny. 

  • How can I read a binary file stream with many data type, as with AcqKnowledge physio binary data file?

    I would like to read in and write physiological data files which were saved by BioPac�s AcqKnowledge 3.8.1 software, in conjunction with their MP150 acquisition system. To start with, I�d like to write a converter from different physiodata file format into the AcqKnowledge binary file format for version 3.5 � 3.7 (including 3.7.3). It will allow us to read different file format into an analysis package which can only read in file written by AcqKnowledge version 3.5 � 3.7 (including 3.7.3).
    I attempted to write a reader following the Application Note AS156 entitled �AcqKnowledge File Format for PC with Windows� (see http://biopac.com/AppNotes/ app156Fi
    leFormat/FileFormat.htm ). Note the link for the Mac File format is very instructive too - it is presented in a different style and might make sense to some people with C library like look (http://biopac.com/AppNotes/ app155macffmt/macff.htm).
    I guess the problem I had was that I could not manage to read all the different byte data stream with File.vi. This is easy in C but I did not get very far in LabView 7.0. Also, I was a little unsure which LabView data types correspond to int, char , short, long, double, byte, RGB and Rect. And, since it is for PC I am also assuming the data to be written as �little endian� integer, and thus I also used byte swap vi.
    Two samples *.acq binary files are attach to this post to the list. Demo.acq is for version 3.7-3.7.2, while SCR_EKGtest1b.acq was recorded and saved with AcqKnowledge 3.8.1, which version number is 41.
    I would be grateful if you someone could explain how to handle such binary file stream with LabView and send an example to i
    llustrate it.
    Many thanks in advance for your help.
    Donat-Pierre
    Attachments:
    Demo.acq ‏248 KB
    SCR_EKG_test1b.acq ‏97 KB

    The reading of double is also straight forward : just use a dble float wired to the type cast node, after inverting the string (indian conversion).
    See the attached example.
    The measure of skin thickness is based on OCT (optical coherent tomography = interferometry) : an optical fiber system send and received light emitted to/back from the skin at a few centimeter distance. A profile of skin structure is then computed from the optical signal.
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Read_AK_time_info.vi.zip ‏9 KB

  • How can I read a binary file stream with many data type, as with AcqKnowled​ge physio binary data file?

    I would like to read in and write physiological data which was saved by Biopac�s AcqKnowledge 3.8.1 software, in conjunction with their MP150 acquisition system. To start with, I�d like to write a converter from different physiodata file format into the AcqKnowledge binary file format for version 3.5 � 3.7 (including 3.7.3). It will allow us to read different file format into an analysis package which can only read in file written by AcqKnowledge version 3.5 � 3.7 (including 3.7.3).
    I attempted to write a reader following the Application Note AS156 entitled �AcqKnowledge File Format for PC with Windows� (see http://biopac.com/AppNotes/app156FileFormat/FileFo​rmat.h
    tm ). Note the link for the Mac File format is very instructive too - it is presented in a different style and might make sense to some people with C library like look (http://biopac.com/AppNotes/app155macffmt/macff.ht​m) .
    I guess the problem I had was that I could not manage to read all the different byte data stream with File.vi. This is easy in C but I did not get very far in LabView 7.0. Also, because it is for PC I am assuming the data to be written as �little endian� integer, and thus I also used byte swap vi.
    I would be grateful if you someone could explain how to handle such binary file stream with LabView and send an example to illustrate it.
    Many thanks in advance for your help.
    Donat-Pierre

    One more step...
    short are U16 integer
    double are double precision float
    bool seem to be 2 bytes (= U16)
    char are string (variable length)
    rgb are U16 integer, with high order byte = 0
    rect should be 4 x U16 (top, left, bottom, right)
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

Maybe you are looking for

  • Release Strategy in purchase order document type

    Hi Gurus.. I'm tring to tweak the single RS in the system. I've set the charcteristic using table CEKKO field BSART, restriction 032, I've set two document types as the Characteristic Value (ZLOG - ZADM). Then I´ve set the class with this characteris

  • Automating work flow with Shared Reviews

    Is there a way to manage the work flow with shared reviews? In other words, I have a pdf document I need to send out for review. I have several people on my review team, and I want them to look at in in sequence rather than all at the same time. Pers

  • Jre6u27 win7 (64) applications can not detect

    windows7 x64 I had jre7.x version installed. And it works fine. Once I removed this version and installed jre6.27 (in fact, when install jdk6.27), applications can not find jre. "JAVA_HOME" is set. "Path" contains path to jre & jdk (i was try any var

  • Lollipop upgrade, mobile data doesn't work

    I upgraded to lollipop today, all fine except my mobile data doesn't work. Any ideas? Tried turning off and on, switching to airplane mode and back, and changing mobile operator and back, still not working. Thanks

  • CS4 manuals on Adobe website

    Hi, Hope someone can help, after spending 45mins waiting for adobe customer service I am getting a bit frustrated! I just want to know where I can find the pdf manuals to the CS4 design standard edition. I was hoping to find them easily on the websit