BlobDomain to File and Reverse

Hi,
I need to create a java.io.File from oracle.jbo.domain.BlobDomain and need also to reverse the operation, the files should be in the server, and its not UploadedFile
a code like this:
Blob to File
public static File blobDomainToFile(BlobDomain blobData) {
File file = new File(SAVED_FILE_PATH, SAVED_FILE_NAME);
file.createFromBlobDomain(blobData);
return file;
File to Blob
public static BlobDomain fileToBlobDomain(File file) {
BlobDomain blobDomain = new BlobDomain();
blobDomain.createFromFile(file);
return blobDomain;
or
public static BlobDomain fileToBlobDomain(String fileName) {
BlobDomain blobDomain = new BlobDomain();
blobDomain.createFromFile(new File(fileName));
return blobDomain;
is it possible?
thanks

User,
please always tell us your jdev version as the solution might depend on it.
Sure it is possible but you have to use streams to get the data from the blob and write it to the blob. The technique is described e.g. http://tompeez.wordpress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-1/ (the source is availabe in part 2 or 3 or http://java.net/projects/smuenchadf/pages/ADFSamplesGeneric#File_Upload_and_Download). All you need to do is to open the file, create a stream to the data ans pass this to the existing methodes in the sample.
Timo

Similar Messages

  • Adobe Acrobat XI for mac, how to reverse pages in a pdf file and how to collate two pdf files into one

    I scanned some large documents, which were two sided. Because they were printed on glossy paper, I could not scan the pages double sided. So I made two files, one file containing all the even pages and one file containing all the odd pages. Now I have two problems: 1. the pages in the even pages file are in the reversed order, so I need to reverse the order of all the pages in this file. Then I need to combine these two files (collate) so that all the odd and even pages are combined into one single file and all the pages are in the correct order.
    In older acrobat pro programs (windows) I found a javascript file that could fix all this. However now I have Acrobat XI and I have a macbook pro, so now I'm completely lost. Can anyone help me with this problem?

    If you have a script that does it then you should use it... Open the console and run this command:
    app.getPath("app", "javascript");
    It will print out the location you need to use for the .js file you have. Then restart Acrobat and you should be good to go.

  • With my taking any action, my folders and files no longer appear under documents (under Places). Now a folder titled Documents has appeared on my desktop with all my files and folders. What happened?What happened?

    With my taking any action, my folders and files no longer appear under documents (under Places). Now a folder titled Documents has appeared on my desktop with all my files and folders. What happened?What happened?

    The way I moved from 10.3.9 to 10.5.8 was to use "ditto -rsrc" and copy the user homes and the data share to an external firewire drive. Then did the same in reverse.
    I found the key to data and share permissions to make sure that the users had the same UID in Leopard that they had in Panther.
    You can then use "sudo rm -rf" to remove any folder from the relocated homes that you want. Remember if you do choose to remove "~/Library" from each users relocated home, you will be removing any iCal calendars, login.keychains, browser bookmarks, custom screensavers and wallpapers, etc.
    Users don't really care if they can login and do any work. But there will be much wailing, gnashing of the teeth, and anxiety, if they lose their bookmarks and wallpaper.

  • When I open iTunes on my new computer using the .itl file, and using the same external drive holding the songs, all of the songs I added to iTunes up to a certain date have broken links, while none of the songs have broken links on the old computer.

    I want to open the  iTunes library on my new laptop with all the playlists and stuff I built on the old computer. I have all my music on an external drive. I have copied the .itl file from the old computer and opened it on the laptop, and it has all the playlists, but all of the songs that were added to iTunes up to a certain date have broken links. What am I doing wrong?

    Moving library files around while leaving the data in the same place usually presents no problems. Moving the data around independently from the library usually breaks things. With Windows machines all you should need to do is make sure that the same drive letter is being used on the new system as with the old. If that is not possible you need to get your library into a portable layout before moving it between systems.
    Typical layout of iTunes folders:
    When the media folder is inside the main iTunes folder as shown above then the library is portable. Typically with a split library the iTunes Music or iTunes Media folder (everything inside the red outline) is moved to a different drive by choosing a new locaton for it and then consolidating.
    To make the library portable again you need to copy the library files and album artwork folder into the parent folder of the media folder so that the nested relationship is recreated. (BTW If your media isn't already inside your designated media folder then you will also need to consolidate the files that are outside of it, before you copy the library files.) You can then use the hold-down-shift-when-starting-iTunes method to open the library file in that parent folder. Once the library has been opened, tested and closed you are most of the way there.
    The iTunes window inherits its title from the folder holding the library files so, unless you created a folder called iTunes to hold the media folder, iTunes may now have an unexpected title when you run it. The parent folder can be renamed as iTunes, and the library opened again. Alternatively, if the parent folder is at the root of the drive, or has other data which you wish to leave in place, you can create a new top level folder called iTunes and move the library files, album artwork and media folders into it before opening and testing the library again.
    If the library doesn't work after any step simply reverse it by undoing a move or rename or opening the previous set iTunes Library.itl file.
    If all has gone well then the library is now portable. Once you've migrated the data to a new system you can copy the library files back to their usual internal location if you find that having them on the external drive affects performance...
    tt2

  • I have an older version of imovie.  After I change the photos using the Ken Burns effect and save them, the next time I open the file and click 'show photo settings' to change the zoom, the picture appears black and I can't change the zoom?

    I have a five year old version of imovie that generally works fine.  However, when I add a photo using the 'Ken Burns' effect then save the movie, the next time I open the file and click 'show photo settings' the picture appears black and I cannot change the zoom.  Any suggestions?

    Have you rendered both iOS 7 and iOS 8 (both of which will work on your iPhone 5) out of the question entirely without trying every possible configuration? The animations can be disabled entirely, if that's the problem. And if the whiter-brighter user interface is the problem, there's reverse-contrast modes that darken everything. You can expose accessibility controls to gain immediate access to these functions to toggle them on and off. I guess my point is you may have decided against upgrading the OS based on an early experience with iOS 7 when Apple has since made changes in later revisions to address some of the usability complaints.
    Now, Apple's instructions for downloading older versions of apps is to do so from the Purchased list, not from the app's product page.
    See here:
    Install the latest compatible version of an app on an earlier version of iOS or OS X - Apple Support
    Let us know how that works for you.

  • E3000 file and printer sharing issues

    Yes, there is at least one other thread on this but it looked a bit stale.
    Last Friday I replaced my BEFSR41 router and WRT54G wireless access point (which had gone brick on me) with an E3000.The E3000 is configured as a DHCP server at 192.168.168.65 with a scope of 66-115. The only other non-default setting is that I opened up the custom port for my slingbox.
    Prior to making the switch, I had several network shares on an XP desktop that I used frequently from my Vista laptop. Now, however, I can no longer even "see" any other computer from any of the computers on the network, much less access their shared folders. In other words, if I view the network from any of these machines, the only machine that shows up is the machine itself. Everything else (internet access, slingbox, a print server) is working just fine.
    One of the suggestions in the other thread was to turn off Norton Internet Security, which is of course not a viable option. However I did check the settings, relaxed the network default to "Shared", and raised the XP desktop to "Full Trust". This had no effect.
    I pinged the various computers, and was able to do so by their IP addresses, but not by their computer names (that worked with the old router). On a hunch, I tried creating a mapped drive, and that also worked when I used the IP address, but not when I used the computer name.
    So - there's nothing wrong with the network configuration, or with how the shares are set up, and Norton isn't the problem. The only problem seems to be that names aren't being resolved, which could be affecting windows discovery, too. Did the BEFSR41 provide some local DNS functionality by default, and the E3000 doesn't? Is there an option I need to enable? If so, I can't find it. Perhaps I should explicitly add the E3000's internal IP address as a third nameserver??
    A note on the "support" I tried to get before I turned to the forums: The "Chat agent" asked a bunch of questions, misunderstood my configuration and my problem, and once he finally did understand said "we don't support file and printer sharing". It took me several more questions to learn that he really meant that the Chat facility isn't the place for these questions - I had to call the 800 number. I did that, and after several minutes on hold, reached an agent. After going through everything again, and with the rep going on hold several times to "speak to his supervisor", he said it was "beyond his competence". I was eventually told I had to call another FEE-BASED service. I told him that was unacceptable.

    Ok, another update and possibly some clues.
    I was curious why at one point, when all the computers were in Workgroup2, that "Workgroup" still showed up in Explorer under the list of networks, but only on the two XP machines. Netscan showed this group association as well, which I then realized was the E3000 itself, in its role as a [I]potential[/I] NAS server. However there was no storage device attached.
    Could this in itself cause the access error? If so, should users be advised that if they don't plan to host any storage, that they should to go to the E3000 Storage Administration page and change the workgroup name to something other than their actual workgroup name?
    In my case, I changed it to "Workgroupx", though perphaps something like "StorageGroup" would be more meaningful, especially if the Workgroup computers could still access any storage I might install in the future.
    Anyway, I repeated my original approach (after the above change and a router reboot), and at least got my original Workgroup reestablished to the point where the XP machines not longer get access errors, and most machines can access the shares on the XP desktop. The steps I used on each machine were:
    remove any shares I had set up on any folders
    uninstalled the File and Printer Sharing service
    Accessed Computer Name properties page to change the workgroup name
    Shut Down
    After all 4 were done, I reversed the process:
    Started computer (now coming up in new Workgroup)
    Reinstalled File and Printer Sharing service
    Checked visibility
    At this point, the XP machines could see each other, and the Win7 and Vista machines could see each other, but initially these two cliques wouldn't interact.
    Next I re-added the shared folders on the XP desktop, and the XP netbook could see and access them. After about an hour, the Win7 machine joined this clique, and could also access the shares. But six hours later, the Vista machine is still clueless. Netscan shows everything of course, and I used it to set up a mapped drive on the Vista machine to one of the shared folders.
    Other possibly relevant facts:
    The was all working fine with the BEFRS41/WAP54G combo
    I can ping all machines by IP address, but not by name
    On the Vista machine I can set up mapped drives to the XP's shared folders, but again, only by IP address.
    At one point I removed NWLink from the XP desktop. Now, nbtstat -r only shows the printserver's name being resolved.
    The two XP machines, being SP3, lack the LLTD responder.
    So,
    Is it possible the NetBIOS in NWLink was providing some kind of name caching? If so, should I reinstall the protocol driver (I don't think it is available on Win7)?
    Should I request and apply the KB922120 hotfix to get LLTD onto the XP machines?
    Perhaps in the morning, "by name" access will have returned, as it did on my first go-round. Needless to say this has been a real pain, what with all the reboots required. At least now I remember to hit F8 so I can select Safe Mode with Networking...

  • Read linux lastlog file and convert to a String

    Hi
    I am trying to read the data from the lastlog file in Linux. I think this is a binary file encoded in ASCII. How would I go about reading this file and converting the binary data into a String and then displaying the data? Each bit of data is separated by a new line to distinguish between the different values.
    Many Thanks
    Sambo

    "Binary file encoded in ASCII"? Well, you'd have to find out what encoding was used and then reverse is.
    As for reading files in general, check here:
    http://java.sun.com/docs/books/tutorial/essential/io/index.html

  • Reset, reorganize and reversal payment

    Hi,
    I want to discuss under which scenario we should use reset/reorganize payment media/reversal payment document.
    we are using DME and F110,
    (1).  if we input wrong bank key for the vendor, after F110 payment run,before click printout, no dme will be generated, thus we can use mass reversal payment (FBRA)and revise vendor bank info, re-run F110. is this solution correct?
    (2) DME file is generated, but we want to cancel, should we use re-organize payment medium data, I heard reorganize payment medium will delete all payment run ID after company golive, is it true? if we can't use re-organize, how to reset payment medium data, any t-code to use?
    (3). any scenario we should reset payment medium rather than reversal payment document? any scenario we should both reset payment medium and reversal payment document?

    Dear:
                           Your statement with reference to your statement  "if you think wrong clearing of outgoing payments were done then you can only should only reset that clearing document. No need to reverse the original document. is not correct" i would like to clarify one thing
    Suppose you made payment to  vendor with all correct assignments
    Vendor Dr
    Bank clearing a/c Cr
    but while clearing the it manually in F-44 you applied this payment against wrong invoice then this is for your kind information that you will only reset the clearing document only so that wrong clearing could be rectified. There might be some differences in understanding context of question , this arises due to differences in frame of mind with which you perceive question. This is for your information.
    SE80 t code is used to reset payment media and i am not user that will it work on ECC 4.6
    Regards

  • Need to take a value from the csv file and query in a OAF page.

    Hello,
    I have a requirement to take the list of employee numbers in a csv file and display its corresponding job on the page.
    I have created a item 'MessageFileupload' where the user will upload the csv file containing the employee number and a Button 'Display Jobs' which will display the corresponding jobs on the page.
    Any idea how to take the values from the csv file and query it?
    Regards,
    den123.

    Hi ,
    Check
    http://oraclearea51.com/contribute/post-a-blog-article/csv-file-upload-for-oa-framework.html
    http://www.roseindia.net/jsp/upload-insert-csv.shtml
    Below code works from above blogs.
    package xx.oracle.apps.pa.Lab.webui;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    // import java.io.*;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.server.OAViewObjectImpl;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.jbo.domain.BlobDomain;
    import oracle.cabo.ui.data.DataObject;
    import oracle.jbo.Row;
    * Controller for ...
    public class deptCsvUploadCO extends OAControllerImpl
      public static final String RCS_ID="$Header$";
      public static final boolean RCS_ID_RECORDED =
            VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
       * Layout and page setup logic for a region.
       * @param pageContext the current OA page context
       * @param webBean the web bean corresponding to the region
      public void processRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processRequest(pageContext, webBean);
       * Procedure to handle form submissions for form elements in
       * a region.
       * @param pageContext the current OA page context
       * @param webBean the web bean corresponding to the region
      public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processFormRequest(pageContext, webBean);
        // Code Addition Started for CSV upload
        OAApplicationModule am = (OAApplicationModule) pageContext.getApplicationModule(webBean);
        OAViewObjectImpl vo = (OAViewObjectImpl) am.findViewObject("deptCsvVO1");
          //if ("GoBtn".equals(pageContext.getParameter(EVENT_PARAM)))
           if (pageContext.getParameter("GoBtn") != null)
          System.out.println("Button Pressed");
              DataObject fileUploadData =(DataObject)pageContext.getNamedDataObject("FileUploadItem");
              String fileName = null;
              String contentType = null;
              Long fileSize = null;
              Integer fileType = new Integer(6);
              BlobDomain uploadedByteStream = null;
              BufferedReader in = null;
                      try
                      fileName = (String)fileUploadData.selectValue(null, "UPLOAD_FILE_NAME");
                      contentType =(String)fileUploadData.selectValue(null, "UPLOAD_FILE_MIME_TYPE");
                      uploadedByteStream = (BlobDomain)fileUploadData.selectValue(null, fileName);
                      in = new BufferedReader(new InputStreamReader(uploadedByteStream.getBinaryStream()));
                      fileSize = new Long(uploadedByteStream.getLength());
                      System.out.println("fileSize"+fileSize);
                      catch(NullPointerException ex)
                      throw new OAException("Please Select a File to Upload", OAException.ERROR);
                      try{ 
                      //Open the CSV file for reading 
                      String lineReader=""; 
                      long t =0;
                      String[] linetext; 
                      while (((lineReader = in.readLine()) !=null) )
                      //Split the deliminated data and
                      if (lineReader.trim().length()>0)
                      System.out.println("lineReader"+lineReader.length());
                      linetext = lineReader.split(","); 
                      t++;
                      //Print the current line being
                      if (!vo.isPreparedForExecution())
                              vo.setMaxFetchSize(0);
                              vo.executeQuery();
                        System.out.println("Trimmed "+  linetext[1].replace("\"", ""));
                      Row row = vo.createRow();
                      row.setAttribute("Deptno", linetext[0].trim());
                      row.setAttribute("Dname",linetext[1].trim().replace("\"", ""));
                      row.setAttribute("Loc",linetext[2].trim().replace("\"", ""));
                      //row.setAttribute("Column4", linetext[3].trim());
                      vo.last();
                      vo.next();
                      vo.insertRow(row);
                      catch (IOException e)
                            throw new OAException(e.getMessage(),OAException.ERROR);
              //else if (pageContext.getParameter("Upload") != null)
              am.getTransaction().commit();
              throw new OAException("Uploaded SuccessFully",OAException.CONFIRMATION);     
    }Thanks,
    Jit

  • What are .ds_store files and can they be removed?

    What are .ds_store files and can they be removed?

    Probably the easiest way is to use Onyx.
    If you show invisibles you can see ds_store in each folder.
    Open Terminal.app (it's in /Applications/Utilities) and copy & paste this command at the prompt...
    sudo chflags nohidden
    Press return.
    The reverse is
    sudo chflags hidden

  • Why does InDesign always open multiple files in reverse number order?

    Whenever I select multiple InDesign files to open, despite being named accordingly Page_01, Page_02, Page_03, etc. InDesign always opens them in reverse order tabs. If I open 10 spreads at once instead of staring at page 1 I'm looking at the back.
    Is there any way to fix this? It's driving me mad. I cannot think of why it would be doing this.

    Create a book (File -> New -> Book...) and add your files to it. Rearrange the files to the order you want. Then select the needed files and double-click to open them. The tabs will be populated respecting the order the files appear in the book.
    Important: BEFORE adding the files to the newly-created book, go to the book panel menu, choose "Book Page Numbering Options..." and deactivate "Automatically Update Page & Section Numbers", to avoid unwanted renumbering of your pages.

  • How can i bulk rename music files in reverse order from artist - song name to songname - artist

    How can I bulk rename music files in reverse order from artist - song name to songname - artist.
    I actually dont need to rename the actual files.
    Its just i have a huge txt list of 100,000 music names that are listed as so..
    Artist - Song Name
    Artist - Song Name
    Artist - Song Name
    Artist - Song Name
    Artist - Song Name
    Artist - Song Name
    and i need this list to reverse it self so it is listed in the list as
    Song Name - Artist
    Song Name - Artist
    Song Name - Artist
    Song Name - Artist
    Song Name - Artist
    Song Name - Artist
    Song Name - Artist
    Im sure there is some kinda way to auto a mix of applescript/automator/terminal to do something like:  all char before the "-" replace with the chars after the "-".
    Please some one help me if you know how I can pull this off

    How can I bulk rename music files in reverse order from artist - song name to songname - artist.
    I actually dont need to rename the actual files.
    Its just i have a huge txt list of 100,000 music names that are listed as so.
    I wonder if we haven't misunderstood what you were asking for. Could it be that you have not a huge file, but just a huge list of names in many small files. If that's the case, you should rather use the following script instead of the previous one.
    Since this script does not rename the files, make a backup of your files before running it.
    set theFolder to choose folder -- the folder containing your text files
    tell application "Finder"
        set theNames to name of files of theFolder whose name extension is "txt"
    end tell
    set theTextFiles to {}
    set theFolderPath to POSIX path of theFolder
    repeat with thisName in theNames
        copy theFolderPath & thisName to the end of theTextFiles
    end repeat
    repeat with thisFile in theTextFiles
        set F1 to open for access thisFile
        set theText to read F1
        close access F1
        set theParagraphs to paragraphs of theText
        set bigList to (a reference to theParagraphs)
        set theNewParagraphs to {}
        set bigNewList to (a reference to theNewParagraphs)
        repeat with X in bigList
            set P to offset of " - " in X
            if P = 0 then
                set Y to X
            else
                set Y to text (P + 3) through -1 of X & " - " & text 1 through (P - 1) of X
            end if
            copy Y & return to the end of bigNewList
        end repeat
        set theNewText to text 1 through -2 of (bigNewList as text)
        set F2 to open for access thisFile with write permission
        set eof F2 to 0
        write theNewText to F2
        close access F2
    end repeat
    display dialog "Done!" buttons {"OK"} default button 1 with icon 1
    Message was edited by: Pierre L.

  • File and iTunes sharing doesn't work

    Hello,
    I have am trying to share files and an iTunes library from my Macbook Pro (Early 2008 model.)  Since upgrading to Mac OS X Mountain Lion, sharing of all kinds has been acting strange.  In other words, file and iTunes sharing from my computer can't be seen by other computers, but the reverse is not true.
    -- 1. iPhone remote app can't see my library: 
             While I can pair my iPhone with my iTunes library (iTunes 11) in the remote application, the Remote app simply says "Looking for..." without no name given for the library (on the remote app, the library shows up as a deactivated itunes logo with no name,) and then "Couldn't find ..."  i.e., it fails to find the library.
    -- 2. iTunes library can't be seen on other macs: 
              I activated home sharing on my mac and another mac (Macbook Air 2011 with Mountain Lion and iTunes 11), I also set my iTunes preferences to "Share music over local network."     While I can see the Air's library on the MBP, I can't see the MBP's library on the Air.
    -- 3. Shared folders can't be seen on other macs:
              I can see shared folders from the Air on my MBP.  But to connect to shared folders on the MBP from the Air, I must enter the exact address, since browsing for my MBP on the network shows nothing. 
    I have confirmed that TCP port 3689 is open on the MBP.   Firewall is off.  The local network in question is my cable modem connection (no router) which I am sharing from my MBP by WiFi .  I am running OS X 10.8.2, iTunes 11.0.1.
    I would appreciate any help anyone could give.
    Thanks

    And you are quite persistent, Menu Boy, in offering pernickety and pointless prattle, in response to a "support page" on iPad's buggy Pages App.
    Let's summarise, for those reviewing this threadless thread for app support..
    Mobile pages works reliably for simple docs, especially creating letters and Menus for Microsoft's Kindy canteen (even on special days with nice big pictures).
    When importing more complex docs and/or working with larger creations, it is prone to randomly corrupting files upon re-opening, along similar lines as Word (running on a PC).
    So, Menu Boy, do they let you sneak into classes every now and then? What is the secret to their training? "Say after me, if any I.T. product works just some of the time, that's a job well done, and if something randomly stops working, we call that the user's fault... And if they complain, we call them names."

  • I have ordered a movie from Apple TV and found it would take 10 hours and 27 minutes to down load. How do I stop it, and reverse my order????

    I have ordered a movie from Apple TV and found it would take 10 hours and 27 minutes to down load. How do I stop it, and reverse my order????

    The problem is generally due to a slow internet connection.
    AppleTV files are fixed size.
    For SD you need 2.5Mbps, 720p HD 6 Mbps and 1080p 8 Mbps sustained speeds to view immediately.
    If your internet delivers these speeds you should be able to play within seconds.
    If slower AppleTV works out how long it will take do download the rental of say 3.5GB for a 720p movie, then subtracts the running time of the movie and whatever that figure is is how long it'll take to start.
    So if a movie is 2 hours long and you have a fast connection and it calculates the movie could download in under 2 hours it'll play withing seconds.
    If it thinks it'll take 4 hours to download, it'll subtract the running time of 2 hours and allow you to play in 2 hours time.
    While this may not seem ideal the reason is that if it didn't precahce on a slow connection you would not be able to play a movie through without stopping and starting to cache the next section.
    Unfortunately this is compounded by using the AppleTV for other things as this can reset the clock by flushing any of the rental cached.
    AC

  • Having trouble converting array to spreadsheet string, storing the file and coverting back to array with complex numbers

    I am working with a network analyzer. I have arrays made of 5 columns the first consisting of an integer and the next four consisting of complex numbers. I am converting the array into a spreadsheet string and then saving the file using the write characters to a file VI. That seems to work well as when I open the file in Excel all the data is there. However when I try to reverse the process, open file and convert back to array, I loose some of the data. Specifically the imaginary parts of my complex numbers are all going to zero. I have narrowed down the problem to be in the conversion from spreadsheet string to array and vice versa. I
    think the problem may be with the 'format' input to the VI. I do not have an adequate resource for this so I am not sure what to put in to accomplish my task. Any takers?

    Hi Biz
    I don't think there is a direct way of converting a complex number to a
    string, so when you convert the array to a spreadsheet string, the
    numbers would be converted to real data.
    However, you could try separating the real and imaginary parts using the
    "Numeric: Complex to Re/Im" function, and then store these - either in
    separate files or in adjacent columns/rows in the same file. Then, when
    you read in the data again, use the "Numeric: Re/Im to Complex" function
    to put the two "halves" together.
    If you actually want Excel to interpret the numbers as imaginary, then
    you'll probably want to create a string for each complex number of the
    form "Re + Im*i" (after separating the Re and Im parts), by using
    "String:Format into String" with 2 numeric inputs and the format string
    "%f+%fi".
    Reading the data back into Labview then would require splitting the
    string into the 2 pieces by using "Stringcan from String" with 2
    numeric outputs (smae precision as original numbers specified by the 2
    Default Value inputs) and the same format string "%f+%fi", and then using
    the above-mentioned "Numeric: Re/Im to Complex" function. It worked for
    me, so if you can't follow what I am describing, send me an email and I
    can email you what I did (LV 5.1.1).
    Paul
    Biz wrote:
    > Having trouble converting array to spreadsheet string, storing the
    > file and coverting back to array with complex numbers
    >
    > I am working with a network analyzer. I have arrays made of 5 columns
    > the first consisting of an integer and the next four consisting of
    > complex numbers. I am converting the array into a spreadsheet string
    > and then saving the file using the write characters to a file VI. That
    > seems to work well as when I open the file in Excel all the data is
    > there. However when I try to reverse the process, open file and
    > convert back to array, I loose some of the data. Specifically the
    > imaginary parts of my complex numbers are all going to zero. I have
    > narrowed down the problem to be in the conversion from spreadsheet
    > string to array and vice versa. I think the problem may be with the
    > 'format' input to the VI. I do not have an adequate resource for this
    > so I am not sure what to put in to accomplish my task. Any takers?
    Research Assistant
    School of Physiotherapy, Curtin University of Technology
    Selby Street, Shenton Park, Western Australia, Australia. 6008
    email: [email protected]
    Tel. +61 8 9266 4657 Fax. +61 8 9266 3699
    "Everyone who calls on the name of the Lord will be saved." Romans 10:12
    "For all have sinned and fall short of the glory of God, and are
    justified freely by his grace through the redemption that came by Christ
    Jesus." Romans 3:23-4

Maybe you are looking for