Database: Search in binary type

I just began with the utilization of database and I created a small database (with the database toolkit)  for technical papers and patents.  To store the abstract I use a binary type.  I want to know if it is possible to make a search in this field (i.e. SELECT * FROM Documents WHERE Résumé LIKE '%alumina%' AND Provenance = 'journal'; )?
Jean-Marc
Jean-Marc
LV2009 and LV2013
Free PDF Report with iTextSharp

I utilize Access.  I solved my problem with the use of "memo type" instead of binary type.  I was able to create a table with "memo type" by modifying DBToolsCreateTable.vi (it is not elegant but it is working).  To insert a new record in the table, I use "DB Tools Execute Query.vi" instead of "DB Tools Insert Data.vi".
I still have a problem.  For some town with a French name like "Saint Martin D'arc" with an apostrophe:  I have to write "Saint Martin D arc".                     
insert into Documents2 values ('US20040168931.pdf','brevet','Choisir','','2004','','','0','17','','Bonnardel, Oliver (Saint Martin D arc, FR), Vanvoren, Claude (Saint Jean De Maurienne, FR)','Method for regulating an electrolysis cell','Bonnardel, Oliver (Saint Martin D arc, FR), Vanvoren, Claude (Saint Jean De Maurienne, FR)','','')
There is a way to write data with an apostrophe?
Jean-Marc
Jean-Marc
LV2009 and LV2013
Free PDF Report with iTextSharp
Attachments:
DBToolsCreateTable MOD LV86.vi ‏24 KB

Similar Messages

  • Does ECC 6.0 Provide a Search-as-you-type Enhancement for Sold-To Party Field?

    In our quest to continually simplify the creation of sales orders, I would like to know if SAP has provided any way to simplify the search and entry of the customer sold-to or ship-to party.  What I am looking for is a way to enter the customer's name (or other customer search criteria such as city) in a single field and have it search-as-you-type.  This is also known as instant search, auto-complete and auto-suggestion.
    We would like to eliminate the clicks it takes to use the standard F4 search help.
    One of our internal developers has created a web-based (.NET) application that brings in SAP data for writing sales orders for a specific segment of our business.  This tool allows you to find the ship-to party by typing in the customer's state, city, zip, address or name in the Ship-To field.  The instant search feature narrow's the list down as you type.  What he has done is written SQL to concatenate the customer name, customer number and address information, and then provided a search-as-you-type feature on top of this.
    Fictious Example of concatenated data (State, City, Customer Name, Address, Zip, SAP Customer Number):
    WA Seattle, Home Depot, 11616 Aurora Ave N, 98133, 18394978
    Typing any of the above information in the field will search for matches and bring back results as you type.
    I would like to know if ECC 6.0 has any similar feature that can be used in VA01 to accomplish the same thing.
    Thank you.
    Rob Scofield

    I don't have access to the code our developer used but again, I am referring to a .NET browser-based application.  We extract a subset of SAP data using Attunity (say, every hour) and the SAP data is stored in a separate SQL Server database.  This database is used by a few browser-based applications we have developed.  For example, we have an application that allows external customers or internal employees the ability to look-up the status of an order.  The first thing you enter is the customer.  In some cases, this may be the Ship-To.  In other cases, the Sold-To.  The user can simply enter some part of the customer and records are searched for a match, as you type.  In our case, the lookup is occurring in SQL Server, not directly in SAP.  The developer took a simple approach of using some SQL query magic (it may be in a SQL Server Stored Procedure), to concatenate the relevant customer information that most people use to lookup a customer - Customer Name, Address, Customer Number.  So as you type, this entire concatenated string is searched and the list of potential "hits" is narrowed as you type.
    The paradigm is similar to Google's Search as you type (SayT), which you can read about here:
    http://www.theverge.com/2012/7/11/3152186/google-search-as-you-type-instant-results-merchants
    http://code.google.com/p/search-as-you-type/
    Or auto-complete: https://support.google.com/websearch/answer/106230
    This is nothing new in the web commerce world.
    I was told by an SAP rep that there might be an enhancement in SAP ECC (SAPGUI Desktop) that could do something similar.  However, I never heard back from him and was wondering if anyone else had heard of something.
    This is another example of how it seems SAP has fallen behind in their UI and search capabilities; and they need to catch-up.  For those of us that have used SAP for many years, F4 seems straight forward and we sometimes don't understand why so many users don't also find it simple.  The answer is, other vendors have made it more simple and with the consumerization of apps, SAP needs to get there.
    Rob

  • Search in binary content

    I want to search for word in a binary content.
    For example I have a type "News" which has the proprieties : title, description ( binary type - mime - text/html). I want to find all news containing in description a word given - example : "and"). I have tried to obtain every node which has a binary property, but it doesn't work. If I will resolved this problem I will set the path to search only the news.
    Here is the code, but I don't receive any results.
    1. ContentContext context = new ContentContext();
    2. ISearchManager searchManager = ContentManagerFactory.getSearchManager();
    3. ITextQuery tQuery = FullTextQueryFactory.getTextQuery();
    4. ITextQueryParameter ftqp1 = tQuery.buildEquals("*"); // will retrieve every node that was indexed ( or can I put "searchedValue")
    5. IFullTextSearch fullTextSearch1 = FullTextSearchFactory.buildFullTextSearch(null, ftqp1, true);
    6. Search binarySeach1= new Search(null, -1, null, fullTextSearch1, true);
    7. binarySeach1.setUseCache(false);
    8. ISortableFilterablePagedList<Node> nodesBinary1 = searchManager.search(context, binarySeach1);
    Full-Text Search is enabled, also Search Indexing is enabled.
    5. IFullTextSearch fullTextSearch1 = FullTextSearchFactory.buildFullTextSearch(null, ftqp1, true);
    Even the third parameter is set to true the fullZTextSearch1 looks like this :
    "Text criteria: (text equals *)
         isOr=false "
    Why isOr set to false and not true? ( If True, search results were contained in either metadata or text data or both.)
    Also from Admin Console I have tried to use Content Search -> Advanced Search -> Full Text Search and I couldn't obtain any search results.
    Thank you!
    Edited by: user13339627 on Jul 7, 2010 7:16 AM

    Here is my repository summary :
    Library Services Enabled: false ( this may be the cause I don't receive any results on searching? )
    Advanced
    Search Enabled: true
    Search Indexing Enabled: true
    Full Text Search Enabled: true
    Streamable: false
    Capabilities :
    Search Capabilities
    Metadata: Enabled
    Keyword: Enabled
    Keyword Index Path: Enabled
    Keyword Index Type: Enabled
    I have tried to receive all nodes with type "news", but also I don't receive any result.
    IFullTextSearch fts = FullTextSearchFactory.buildFullTextSearch(
                        mQuery.buildEquals(IMetadataQuery.SystemProperty.cm_objectClass, new String[]{"news"}),
                        null, false);
    Search search3= new Search(null, -1, null, fts, true);
    ISortableFilterablePagedList<Node> result3 = searchManager.search(new ContentContext(), search3);
    System.out.println("Result : ");
    for(Node n : result3){
    System.out.println(n.getName());
    }

  • Search-as-you-type feature

    Here is 1 more prob. with java jdk1.3
    I want the search-as-u-type feature to be made available here.
    My find dialogue box works well.We have a button Find Next which
    iterates thru the grid data.Suppose the criteria which the user selects is 'starts with'
    then whenever the start of the column data matches the text entered in text field then
    that row is selected.
    Now the user wants the search-as-u-type feature included.As we know whatever he types
    in textbox , if available in grid should move right on top & that shoud keep happening...the problem is
    that designing this thru java code is not easy.Because the iteration takes time & the way windows or other
    help search-as-u-type features work is very fast.How do i achieve the same result.
    Do i find a way out for this or is there another component which we cud use in java
    to handle this.

    Here is 1 more prob. with java jdk1.3
    I want the search-as-u-type feature to be made
    available here.
    My find dialogue box works well.We have a button Find
    Next which
    iterates thru the grid data.Suppose the criteria
    which the user selects is 'starts with'
    then whenever the start of the column data matches
    the text entered in text field then
    that row is selected.
    Now the user wants the search-as-u-type feature
    included.As we know whatever he types
    in textbox , if available in grid should move right
    on top & that shoud keep happening...the problem is
    that designing this thru java code is not
    easy.No? Why not? When I built something like this, I thought it was pretty easy.
    Because the iteration takes time & the wayWhat about using a binary search then?
    windows or other
    help search-as-u-type features work is very fast.How
    do i achieve the same result.If you've got a massive amount of data, sure, java will probably be slow. But generally Java can handle this almost as fast as native C++ code, and your problem is probably that you just haven't implemented this right.
    >
    Do i find a way out for this or is there another
    component which we cud use in java
    to handle this.

  • Linear search and binary search

    Hi
    can any one tell me what is linear and binary search in detail.
    and what is the difference between them .
    which one is useful in coding.
    Thanks&Regards,
    S.GangiReddy.

    hi,
    If you read entries from standard tables using a key other than the default key, you can use a binary search instead of the normal linear search. To do this, include the addition BINARY SEARCH in the corresponding READ statements.
    READ TABLE <itab> WITH KEY <k1> = <f1>... <kn> = <fn> <result>  BINARY SEARCH.
    The standard table must be sorted in ascending order by the specified search key. The BINARY SEARCH addition means that you can access an entry in a standard table by its key as quickly as you would be able to in a sorted table.
    REPORT demo_int_tables_read_index_bin.
    DATA: BEGIN OF line,
            col1 TYPE i,
            col2 TYPE i,
          END OF line.
    DATA itab LIKE STANDARD TABLE OF line.
    DO 4 TIMES.
      line-col1 = sy-index.
      line-col2 = sy-index ** 2.
      APPEND line TO itab.
    ENDDO.
    SORT itab BY col2.
    READ TABLE itab WITH KEY col2 = 16 INTO line BINARY SEARCH.
    WRITE: 'SY-SUBRC =', sy-subrc.
    The output is:
    SY-SUBRC =    0
    The program fills a standard table with a list of square numbers and sorts them into ascending order by field COL2. The READ statement uses a binary search to look for and find the line in the table where COL2 has the value 16.
    Linear search use sequential search means each and every reord will be searched to find. so it is slow.
    Binary search uses logrim for searching. Itab MUST be sorted on KEY fields fro binary search. so it is very fast.
    The search takes place as follows for the individual table types :
    standard tables are subject to a linear search. If the addition BINARY SEARCH is specified, the search is binary instead of linear. This considerably reduces the runtime of the search for larger tables (from approximately 100 entries upwards). For the binary search, the table must be sorted by the specified search key in ascending order. Otherwise the search will not find the correct row.
    sorted tables are subject to a binary search if the specified search key is or includes a starting field of the table key. Otherwise it is linear. The addition BINARY SEARCH can be specified for sorted tables, but has no effect.
    For hashed tables, the hash algorithm is used if the specified search key includes the table key. Otherwise the search is linear. The addition BINARY SEARCH is not permitted for hashed tables.
    Binary search must be preffered over linear sarch.
    Hope this is helpful, Do reward.

  • SOON: Advisor Webcast - WebCenter Content: Database Searching and Indexing

    Learn how to improve search performance by attending the 1 hour Advisor Webcast: WebCenter Content: Database Searching and Indexing on March 15, 2012 at 16:00 UK / 167:00 CET / 08:00 am Pacific / 9:00 am Mountain / 11:00 am Eastern. For details, go here https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=1399682.1.
    TOPICS WILL INCLUDE:
    * Optimize the database index for faster searching
    * Locate WebCenter Content problematic queries
    * Use SQL Developer to find explain plans and profile SQL statements
    * Configure WebCenter Content to tweak search settings
    Edited by: user754652 on Jan 30, 2012 7:44 AM
    Edited by: user754652 on Mar 7, 2012 7:09 AM

    Hi All,
    Not sure if this is the right forum however I am not able to find the installation for Release 11gR1: 11.1.1.7.0 at http://www.oracle.com/technetwork/middleware/webcenter/content/downloads/index.html
    Any pointers where can I download from?
    Thanks

  • Database Searching Algorithms

    Hi..
    I have to do some research about database searching algorithms.
    Would someone here help me and give a list of that algorithms and which one is the best.
    What is the name of this algorithms which when u type in a key such "a" then it display a list of information that started with "a".

    I guess I have more time than I thought... :)
    Here is a full working example all in one class...
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class MAIN
         DefaultListModel model_my_list = new DefaultListModel();
        JList my_list = new JList(model_my_list);
         DefaultListModel model_list_of_finds = new DefaultListModel();
        JList list_of_finds = new JList(model_list_of_finds);
         JTextField search_box = new JTextField(20);
         JTextField add_box = new JTextField(20);
         public MAIN()
              JFrame frame = new JFrame( "Search test" );          
              frame.setSize( 500, 500 );
              Container container = frame.getContentPane();
             GridBagLayout gbl = new GridBagLayout();             
             container.setLayout(gbl);
             GridBagConstraints gbc = new GridBagConstraints();
             Action actionAdd = new AbstractAction("ADD")
                 public void actionPerformed(ActionEvent evt)
                      model_my_list.add( model_my_list.size(), add_box.getText() );
                      add_box.setText("");
             JButton buttonAdd = new JButton(actionAdd);
             buttonAdd.setPreferredSize( new Dimension( 100, 30 ) );
             gbc.gridx = 2;
             gbc.gridy = 2;
             gbl.setConstraints(buttonAdd, gbc);
             container.add( buttonAdd );
             Action actionSearch = new AbstractAction("SEARCH")
                 public void actionPerformed(ActionEvent evt)
                      search( search_box.getText() );
             JButton buttonSearch = new JButton(actionSearch);
             buttonSearch.setPreferredSize( new Dimension( 100, 30 ) );
             gbc.gridx = 2;
             gbc.gridy = 4;
             gbl.setConstraints(buttonSearch, gbc);
             container.add( buttonSearch );         
             JLabel add_label = new JLabel( "Add element" );
             gbc.gridx = 1;
             gbc.gridy = 1;
             gbl.setConstraints(add_label, gbc);
             container.add( add_label );
              gbc.gridx = 1;
             gbc.gridy = 2;
             gbl.setConstraints(add_box, gbc);
             container.add( add_box );
             JLabel search_label = new JLabel( "Search keyword" );
             gbc.gridx = 1;
             gbc.gridy = 3;
             gbl.setConstraints(search_label, gbc);
             container.add( search_label );
              gbc.gridx = 1;
             gbc.gridy = 4;
             gbl.setConstraints(search_box, gbc);
             container.add( search_box );
              JLabel all_label = new JLabel( "All elements" );
             gbc.gridx = 1;
             gbc.gridy = 5;
             gbl.setConstraints(all_label, gbc);
             container.add( all_label );
             JScrollPane all_scroll = new JScrollPane( my_list );
              gbc.gridx = 1;
             gbc.gridy = 6;
             gbl.setConstraints(all_scroll, gbc);
             container.add( all_scroll );
              JLabel found_label = new JLabel( "Searched elements" );
             gbc.gridx = 2;
             gbc.gridy = 5;
             gbl.setConstraints(found_label, gbc);
             container.add( found_label );
             JScrollPane found_scroll = new JScrollPane( list_of_finds );
              gbc.gridx = 2;
             gbc.gridy = 6;
             gbl.setConstraints(found_scroll, gbc);
             container.add( found_scroll );
              frame.pack();
              frame.setResizable( false );
              frame.setVisible( true );          
         public void search( String searchWord )
              model_list_of_finds.clear(); //empty
              for ( int i = 0; i < model_my_list.size(); i++ )
                   String text = (String)model_my_list.get(i);
                   if ( text.startsWith( searchWord ) )
                        model_list_of_finds.add( model_list_of_finds.size(), text );
                        continue;
                   if ( text.endsWith( searchWord ) )
                        model_list_of_finds.add( model_list_of_finds.size(), text );
                        continue;
                   String keyword[]  = text.split( searchWord );
                   if (keyword.length > 1 ) //if there was a split... there was a find
                     model_list_of_finds.add( model_list_of_finds.size(), text );
                     continue;
         public static void main ( String args[] )
              new MAIN();
    }

  • How can I disable "search as you type" in Finder windows?

    I have used OS X since it first came out and have upgraded to each version since then.  I am now on Lion.  I have endured "search as you type" for as long as it has been a "feature" and I must say that I am fed up with it, mainly because it slows me down.  It makes the computer "get in my way," which is the very anathema Steve Jobs sought to destroy with Apple.  My Mac should be a friendly tool that doesn't get in my way.  Most of the time it is, but not when it comes to Finder searches.
    Toward that end I wish to disable "search as you type" (or whatever the offical name for it is).  More specifically, I want to disable it in the search bar in the upper right corner of Finder windows. 
    I don't care about the Spotlight menu in the menubar, as I never use that and don't want to train myself to use it.  And I refuse to use an alternative search utility to Spotlight.  I want to use the search field in the upper right corner of Finder windows, AND NOTHING ELSE.  But at the same time, I want to kill "search as you type."  I want to be able to type as fast or slow as I like and have my computer not search for anything at all until I hit RETURN.  I don't want to argue about it.  That is the way I want it.  And again, I don't want to use a 3rd part utility, no matter how glorious some people may say they are because I stubbornly want to use the search bar atop every Finder window EXCLUSIVELY.
    Therefore, is there some Terminal hack to accomplish this feat?  If so, what is it?
    Many thanks for your time.  I look forward to hearing your solutions.
    --James Wages

    Having posted the initial question more than 1 week ago now, I must say that I am quite shocked and dismayed that not a single experienced individual among us in these forums has the knowledge to even approach my question!  Not even a reply to say "it cannot be done"!  Forgive me for being brash.  But is everyone on vacation? Or does no one know?  Or is everyone truly apathetic toward the existing functionality?
    If our computers were so lightning  fast that "search as you type" was instantaneous (i.e., displayed results a 50ms or so, and faster than I could notice such that my fingers were not slowed down at all as I type), I wouldn't have taken time to write about this.  But I put forth the initial question because of the inherent slowness of "search as you type" and therefore I wish to know how one would go about disabling it on an OS level (i.e., without having to resort to a third party app).
    I look forward to your insightful replies!
    Thank you.

  • I have a macbook pro with OSX 10.9.3 and Safari 7.0.4. How do I remove BING FROM SEARCHING when i type something into the search bar

    I have a macbook pro with OSX 10.9.3 and Safari 7.0.4. How do I remove BING FROM SEARCHING when i type something into the search bar

    See below if the search engine setting was changed without your knowledge and you can't change it back.
    You installed the "Genieo/InstallMac" rootkit. The product is a fraud, and the developer knowingly distributes an uninstaller that doesn't work. I suggest the tedious procedure below to disable Genieo. This procedure may leave a few small files behind, but it will permanently deactivate the rootkit (as long as you never reinstall it.)
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data. You must know how to restore from a backup even if the system becomes unbootable. If you don't know how to do that, or if you don't have any backups, stop here and ask for guidance.
    Step 1
    In the Applications folder, there may (or may not) be an application named "Genieo". Genieo may be partially installed even if this item is absent. If it's present, select it and open the Finder Info window. If it shows that theVersion is less than 2.0, download and install the current version from the genieo.com website. This may seem paradoxical, since the goal is to remove it, but you'll be saving yourself some trouble as well as the risk of putting the system in an unusable state.
    There should be another application in the same folder named "Uninstall Genieo". After updating Genieo, if necessary, launch "Uninstall Genieo" and follow the prompts to remove the "newspaper-style home page." Restart the computer.
    This step does not completely inactivate Genieo.
    Step 2
    Don't take this step unless you completed Step 1, including the restart, without any error messages. If you didn't find the Genieo application, or if you couldn't complete Step 1 for any reason, stop here and ask for instructions.
    Triple-click anywhere in the line below on this page to select it:
    /Library/Frameworks/GenieoExtra.framework
    Right-click or control-click the line and select
    Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.
    If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    A folder should open with an item named "GenieoExtra.framework" selected. Move that item to the Trash. You'll be prompted for your administrator password.
    Move each of these items to the Trash in the same way:
    /Library/LaunchAgents/com.genieo.completer.update.plist
    /Library/LaunchAgents/com.genieo.engine.plist
    /Library/LaunchAgents/com.genieoinnovation.macextension.plist
    /Library/LaunchDaemons/com.genieoinnovation.macextension.client.plist
    /Library/PrivilegedHelperTools/com.genieoinnovation.macextension.client
    /usr/lib/libgenkit.dylib/usr/lib/libgenkitsa.dylib
    /usr/lib/libimckit.dylib
    /usr/lib/libimckitsa.dylib~/Library/Application Support/com.genieoinnovation.Installer~/Library/LaunchAgents/com.genieo.completer.download.plist
    ~/Library/LaunchAgents/com.genieo.completer.update.plist
    If there are other items with a name that includes "Genieo" or "genieo" alongside any of those listed above, move them as well. There's no need to restart after each one. Some of these items will be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    Restart and empty the Trash. Don't try to empty the Trash until you have restarted.
    Step 3
    From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including ones called "Genieo" or "Omnibar," and any that have the word "Spigot" or "InstallMac" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    Your web browser(s) should now be working, and you should be able to reset the home page and search engine. If not, stop here and post your results.
    Make sure you don't repeat the mistake that led you to install this software. Chances are you got it from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad has a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If youever download a file that isn't obviously what you expected, delete it immediately.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the Genieo developer has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight is inexcusable and has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    Finally, be forewarned that when Genieo is mentioned on this site, the perpetrator of the scam sometimes shows up under the name "Genieo support." He will tell you to run the provided uninstaller. As he knows and intends, the uninstaller does not completely remove the malware.

  • What is the best way of insertion using structured or binary type in oracle

    what is the best way of insertion using structured or binary type in oracle xml db 11g database

    SQL*Loader.

  • Database search results

    i have a master results page (aspVB) from Dreamweaver 8. have
    search page from
    WebAssist Database Search using advanced text search (single
    search box)
    question 1 - when a user hits 'enter' on the search page, all
    records show,
    no matter if there is any value in the search box or not. How
    do you prevent
    any records showing, if 'enter' is selected and the search
    box is empty, and
    if there is a value in the search box and 'enter' is
    selected, show just the
    results from the search box value?
    question 2 - if more than one word is put in the search box,
    such as, 'green
    sol' the results show any thing with 'green' as well as
    anything
    with 'sol' and also anything with 'green sol'. how can you
    just have the
    results with 'green sol' and not 'green' or 'sol'. result
    wanted is 'green
    solutions' or 'green solar' or 'green sold'.
    thanks for your help
    jim balthrop

    Thank you for pointing out this problem. It has been fixed. (If you still see the wrong topic being linked to, try refreshing your browser. If it's still a problem, it might take a little while for the Database 11.2 documentation library to be updated on various systems worldwide. It did work just now for me.)

  • Howto dispay image from binary type

    Hi, I have sucesfully displayed picture from context of type "Resource" to an Image child with binded to it context of type String. I use to it belov listed piece of code and it works fine:
    FileResource = value attribute if type com.sap....Resource
    Image = value attribut of type String binded to Image child
    if (element.getFileResource() != null) {
    element.setImage(element.getFileResource().getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal()));
    Now I have encountered closely related problem (there is a smile with coding an upload as well but I was able to upload "something" != null.). I have a picture in Binary type (uploaded from mysql db). How do I display it in an Image child with String type context (you can bind other types of context to Image child than String)? Below code how I upload the image:
    ResultSet rs = stUpdate2.executeQuery("SELECT * FROM photo");
         while(rs.next())
              byte[] b=rs.getBytes(1);
    IWDResource res=WDResourceFactory.createCachedResource(b,"Image4",WDWebResourceType.JPG_IMAGE);                    IPrivateMyProjectView.IImageTableElement imageEle=wdContext.createImageTableElement();
         imageEle.setImage3(b); //this is probably wrong, I tried bot "setImage3(res)" but I get error
    //The method setImage3(byte[]) in the type IPrivateKartaPolakaView.IImageTableElement is not applicable for //the arguments (IWDResource)
    //or
    //imageEle.setImage3( res.getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal()));
    //               wdContext.nodeImageTable() .addElement(imageEle );
    //how it should be but that provides me "The method setImage3(byte[]) in the type //IPrivateMyProjectView.IImageTableElement is not applicable for the arguments (String)" error
    wdContext.nodeImageTable().addElement(imageEle );
    ImageTable = Value Node
    Image3 = value attribute of type binary
    Please advice. Regards, Balmer.

    Hi,
    First of all, make a string context attribute, and bind ur image UI element's source name to it.
    Then write the following code:
    IWDResource l_resource = WDResourceFactory.createCachedResource(<variable of type byte[] whihch has the binary type>,"MyImage",WDWebResourceType.JPG_IMAGE);
    String l_image = l_resource.getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal());
    now set this l_image to the source context attribute.
    check it out and let me know if it works.....
    Regards,
    Gita

  • Newbie: check binary type of file

    hi all
    Is there simplest way to check target file is text file or binary type?
    (I googled for a while but still not hit it :(
    Thanks and regards,

    Any file is a sequence of bytes. Your interpretation of whether those bytes taken as a whole are "text" versus "binary" is up to you.

  • Search "as you type" search form

    Is there a way to implement a search "as you type" search form? I know how to implement a standard seach form but am not sure how you would do a "as you type" search form.
    Any help would be appreciated.
    Marty

    Hi Marty,
    I'm not sure to well understand the question, but if i do this link could probably help you:
    http://my.opera.com/dominionspy/blog/2007/02/26/an-advanced-custom-search-form-for-adf
    Good luck,
    Tif

  • SQL*loader support database columns Of Binary Double/Float

    Does SQL*loader support database columns Of Binary Double/Float when applying Direct Path?

    Why not use Google and find out for yourself.
    The first hit on Google is this
    Go see for yourself
    Regards
    FJ

Maybe you are looking for

  • Photoshop CC freezing after a minute or so... HELP!

    Hi, Im using a retina macbook pro 13inch w/ the latest version of photoshop cc. i've been using cc for a while now and its been fine, until late last week, I was pretty sure I applied an update, and its since been freezing after about a minute or so,

  • The company of bad guys sprint

    The company of bad guys sprint, I send an email to ask them how to unlock my iphone4s He said he can not how can I do Subject How To Unlock Sprint Iphone 4s? Discussion Thread Response (Sonya B.) 06/03/2012 05:29 PM Dear wu Then I would suggest you t

  • What references are required to access ..i

    Hi Curt, I want to add that from the list of references I used in previous correspondence , NIDAQmxCAPI , IF i AM CORRECT IS RELEVANT.mAYBE THER'S ANOTHER ONE NOT ON THE LIST?Please let me know. yours jeff

  • Logging of events

    I would like to create a file that will log certain events. How should I create this file without overwriting this? If I use FileOutputStream,then the file passed to this constructor will overwrite the existing file.? Is there any way for me to creat

  • JFileChooser limiting access

    Hello, I need to create a FileChooser that will browse from a given directory(i.e. the CD drive). What I need to do is only allow the user to browse the directory from the starting point down. I don't want them to pull down the drop down list and cho