Cos equivalent to PDPageAddAnnot()

Hi, all!
I'm developing a plug-in for Adobe Acrobat which automatically adds a file attachment annotation to an open Adobe document from a scanner. I've got a version which uses PDPageCreateAnnot() followed by PDPageAddAnnot(), which works perfectly. However, since I'm trying to make this plug-in ready for Reader integration, I'm attempting to replace these functions with Cos-level equivalents.
I seem to have successfully replaced PDPageCreateAnnot() with Cos-level stuff, but I am having trouble with PDPageAddAnnot(). I have the following:
// Get COS layer pointers to the document and page
CosDoc cosDoc = PDDocGetCosDoc(pdDoc);
CosObj cosPage = PDPageGetCosObj(pdPage);
// The annotation is placed one inch from the top left of the crop box.
ASFixedRect annotBounds, cropBox;
PDPageGetCropBox(pdPage, &cropBox);
annotBounds.left = cropBox.left + fixedSeventyTwo;
annotBounds.top = cropBox.top - fixedSeventyTwo;
annotBounds.right = annotBounds.left + ASInt32ToFixed(7);
annotBounds.bottom = annotBounds.top - ASInt32ToFixed(17);
// Cos equivalent of PDPageCreateAnnot(pdPage, ASAtomFromString("FileAttachment"), &annotBounds)
CosObj cosRawAnnot = CosNewDict(cosDoc, true, 4);
CosDictPutKeyString(cosRawAnnot, "Type", CosNewNameFromString(cosDoc, false, "Annot"));
CosDictPutKeyString(cosRawAnnot, "Subtype", CosNewNameFromString(cosDoc, false, "FileAttachment"));
CosDictPutKeyString(cosRawAnnot, "Rect", CreateRectangleArray(cosDoc, annotBounds)); // Where "CreateRectangleArray()" makes an array of ASFixed items)
// Cos equivalent of PDPageAddAnnot(pdPage, -2, pdAnnot)?
CosObj cosPageAnnotationDictsArray = CosDictGetKeyString(cosPage, "Annots");
CosArrayInsert(cosPageAnnotationDictsArray, CosArrayLength(cosPageAnnotationDictsArray), cosRawAnnot);
// More code to set the various annotation attributes, plus associate the annotation with a CosStream
CosDictPutKeyString(cosRawAnnot, "T", CosNewString(cosDoc, false, szTitle, strlen(szTitle)));
CosDictPutKeyString(cosRawAnnot, "Subj", CosNewString(cosDoc, false, szSubj, strlen(szSubj)));
CosDictPutKeyString(cosRawAnnot, "C", CreateColourArray(cosDoc, 63, 84, 255));
CosDictPutKeyString(cosRawAnnot, "Name", CosNewNameFromString(cosDoc, false, "Paperclip"));
CosDictPutKeyString(cosRawAnnot, "F", CosNewInteger(cosDoc, false, 0x10 | 0x08 | 0x04));
If I save the document and reload it, everything appears as expected. The problem is that, prior to the document being saved and reloaded, the paperclip icon does not appear on the document unless the document view is resized, and the file data never shows up under "View File Attachments". After seeing previous suggestions by Leonard Rosenthol, I added the following function calls:
AVPageView page = AVDocGetPageView(AVDocFromPDDoc(pdDoc));
AVPageViewInvalidateRect (page, NULL);
AVPageViewDrawNow(page);
PDAnnotNotifyDidChange( PDAnnotFromCosObj(cosRawAnnot), ASAtomFromString( "AP" ), 0 );
AVPageViewScrollToAnnot( page, PDAnnotFromCosObj(cosRawAnnot));
Unfortunately, these do not rectify the problem.
Could you please advise what else PDPageAddAnnot() might be doing to force the viewer to refresh the page?

PDF CanOpener, while a very interesting tool in its own right, did not provide any additional insight. There did not appear to be any obvious difference between the Cos-level document tree after execution of the PDPageAddAnnot() call, and the Cos-level document tree after execution of the CosArrayInsert() call. In both cases, all the relevant data was there; the only difference seems to be in the viewer's display. (Minor differences existed between the set of these and the result of adding a file as a comment through the Acrobat menus, but they're not relevant, since the PDPageAddAnnot() call does everything I need.)
I've become convinced that the difference lies not in the underlying structure of the document, and instead lies in the viewer's (outdated) understanding of that structure. I think my solution lies in browbeating the viewer until it updates its view of the document (particularly the parts which display the attachment icon on the document page and the parts which update the Attachments navigation panel).
Apart from the APIs we've already discussed, does anybody have any idea how I can force the viewer to update its concept of the document?

Similar Messages

  • Equivalent of JavaScript escape function in PLSQL

    Hi,
    Is there any equivalent of JavaScript's "escape()" function in PlSql for web development? cos I found that whenever I have links generated in stored procedure with text that has space, single quote and so on will become invalid url syntax when user clicks on the hyperlink.
    So I hope to convert the text to valid syntax while generating the link.
    Please advise.
    Thank you so much.

    Hi,
    CREATE OR REPLACE FUNCTION UNESCAPE_F
    (P_TEXT IN VARCHAR2 := null) RETURN VARCHAR2 IS
    V_HEX2 VARCHAR2(1);
    V_CHAR VARCHAR2(1);
    V_TEXT VARCHAR2(4000);
    V_RETURN VARCHAR2(4000) := NULL;
    V_HEX1 VARCHAR2(1);
    BEGIN
    IF p_text IS NULL THEN
    v_return := NULL;
    ELSE
    v_text := p_text;
    WHILE INSTR(v_text, '%') > 0 LOOP
    v_return := v_return | | SUBSTR(v_text, 1, INSTR(v_text, '%') - 1);
    v_text := SUBSTR(v_text, INSTR(v_text, '%') + 1);
    v_hex1 := SUBSTR(v_text, 1, 1);
    v_hex2 := SUBSTR(v_text, 2, 1);
    v_text := SUBSTR(v_text, 3);
    SELECT
    CHR(
    (DECODE(v_hex1,'0',0,'1',1,'2',2,'3',3,'4',4,'5',5,'6',6,'7',7,'8',8,'9',9,'A',10,'B',11,'C',12,'D',13,'E',14,'F',15,0) * 16) +
    DECODE(v_hex2,'0',0,'1',1,'2',2,'3',3,'4',4,'5',5,'6',6,'7',7,'8',8,'9',9,'A',10,'B',11,'C',12,'D',13,'E',14,'F',15,0) )
    INTO v_char
    FROM dual;
    v_return := v_return | | v_char;
    END LOOP;
    v_return := v_return | | v_text;
    END IF;
    RETURN(v_return);
    END UNESCAPE_F;
    Regards Michael

  • How do I start firefox in safe mode on a Mac as the equivalent of holding option key whilst starting doesn't open dialogue on Mac?

    I am trying to reset toolbars and am following firefox's help instructions. How do I start firefox in safe mode on a Mac as the equivalent of holding option key whilst starting doesn't open a dialogue box on the Mac?

    Thanks Morbus.. I hadn't noticed that but it was already set at Mac. I tried it again and it worked this time... but alas my main problem persists:
    My back and forward buttons don't work in Firefox and I've lost all of my bookmarks! I've tried a few of the suggestions but without success at the moment.
    Particularly unhelpful are the instructions to back-up your lost bookmarks - which I can't do cos they're lost!!

  • Equivalent of MS Access First Function in SQL for Group By

    We previously had an Access database performing operations. We are now converting it over to SQL. There are queries in Access that use the "First" function to insert data, which I have not been able to find the equivalent to in SQL. Below is an
    example showing the data used, the SQL syntax and the results that it would produce.
    tbl_Data
    FirstN LastN CustNum TDate SalesPer
    Jim Smith 11111 5/10/2014 Jim Johnson
    Sally Jones 22222 5/12/2014 Alan Brown
    Sally Jones 22222 5/10/2014 Ben Doers
    Jim Smith 11111 5/12/2014 Jim Johnson
    Frank Oliver 33333 5/15/2014 Jim Johnson
    Results to be inserted into tbl_Main
    FName LName CustID TransDate SalesPerson
    Jim Smith 11111 5/10/2014 Jim Johnson
    Sally Jones 22222 5/10/2014 Ben Doers
    Frank Oliver 33333 5/15/2014 Jim Johnson
    Below is the SQL that will produce this
    INSERT INTO tbl_Main ( FName, LName, CustID, TransDate, SalesPerson)
    SELECT td.FirstN, td.LastN, td.CustNum, First(td.TDate) As SellDate, First(td.SalesPer) As SP
    FROM tbl_Data td
    GROUP BY td.FirstN, td.LastN, td.Cust;
    If anyone could assist me in an alternative that I could use in SQL to yield the same results, I'd appreciate it.

    tbl_Data
    FirstN LastN CustNum TDate SalesPer
    Jim Smith 11111 5/10/2014 Jim Johnson
    Sally Jones 22222 5/12/2014 Alan Brown
    Sally Jones 22222 5/10/2014 Ben Doers
    Jim Smith 11111 5/12/2014 Jim Johnson
    Frank Oliver 33333 5/15/2014 Jim Johnson
    Results to be inserted into tbl_Main
    FName LName CustID TransDate SalesPerson
    Jim Smith 11111 5/10/2014 Jim Johnson
    Sally Jones 22222 5/10/2014 Ben Doers
    Frank Oliver 33333 5/15/2014 Jim Johnson
    Below is the SQL that will produce this
    INSERT INTO tbl_Main ( FName, LName, CustID, TransDate, SalesPerson)
    SELECT td.FirstN, td.LastN, td.CustNum, First(td.TDate) As SellDate, First(td.SalesPer) As SP
    FROM tbl_Data td
    GROUP BY td.FirstN, td.LastN, td.Cust;
    As an aside that query is not correct in Access -  because you did not specify an ORDER BY the resultset has no particular order so you could get either row for Jim or Sally.
    It's a bit of a tricky one as it may on the surface appear that the resultset is always returned in a consistent order but this is not guaranteed (not in Access and certainly not in SQL server)

  • Is there a logic:match equivalent for JSTL?

    In a search page I execute a query which returns an array of objects (All objects are of the same object type and are cast to Object[]) and each object has many attributes. I tried using <logic:iterate>, but I was never successful in having it display any results. I believe this had something to do with the entire array being passed via session scope instead of just one record and me not specifying it properly with <logic:iterate>. I was able to successfully use <c:forEach> and it worked right away. I stuck with using that because of its "just works" ability in addition to using a lot of other JSTL code. However, one of the attributes that is being printed out needs to be parsed and is of the form "Yxxx". <logic:match> covers this very nicely, but when I specify it in the below code it is not able to find my variable in any scope.
    <c:forEach var="myResults" items="${sessionScope.result}" varStatus="status">
        <logic:match parameter='${myResults}' property='pin' value='Y'>
            <c:out value="Preeti"/>
        </logic:match>
    </c:forEach>I have done several google searches, but I haven't found a JSTL equivalent for <logic:match>. If there is one could someone please tell me what it is? In addition, although <logic:match> is great I still need to print out a substring of that attribute. Could someone tell me how to do that? If this is not possible could someone please tell me if its possible to use <logic:iterate> with an array of objects like I was attempting to do initially so that I could use <logic:match> at least?
    Thanks to all of you for your time.

    Yes you can use the logic:iterate tag. I think you have to specify the type of the exposed variable though. I prefer the forEach loop.
    I think you are using the wrong attribute in the logic:match tag. You should be using the "name" attribute rather than "parameter"
    Parameter attribute refers you to a request parameter, and I pretty sure you don't want that.
    So given the collection of objects in the session attribute "result"
    This should loop through them all, and see if they start with the letter 'Y'
    <c:forEach var="myResults" items="${sessionScope.result}" varStatus="status">
        <logic:match name='myResults' property='pin' value='Y'>
            <c:out value="Preeti"/>
        </logic:match>
    </c:forEach>As for the latter bit, are you using a JSP2 container and JSTL1.1? It would appear so seeing as you are trying to use EL expressions in the logic:match tag.
    If so, you could make use of the JSTL function library:
    <c:forEach var="myResults" items="${sessionScope.result}" varStatus="status">
       <c:if test='${fn:startsWith(myResults.pin, "Y")}'>
          <c:out value="${fn:substring(myResults.pin, 1, -1)}"/>
        </c:if>
    </c:forEach>And I've just spotted a very cool function in there: substringAfter
    <c:forEach var="myResults" items="${sessionScope.result}" varStatus="status">
          <c:out value='${fn:substringAfter(myResults.pin, 'Y')}'/>
    </c:forEach>Cheers,
    evnafets

  • What is equivalent of JInternalFrame in JavaFX 2.0?

    what is equivalent of JInternalFrame in JavaFX 2.0?
    Actually I want to use pure javaFX 2.0 to view report created in iReport 5.0.0.
    I have used java.swing code, and now I want to use pure javaFX 2.0.
    My code in swing is as follows
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package reports;
    import java.awt.BorderLayout;
    import java.awt.Container;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import java.util.HashMap;
    import net.sf.jasperreports.engine.JRException;
    import net.sf.jasperreports.engine.JasperFillManager;
    import net.sf.jasperreports.engine.JasperPrint;
    import net.sf.jasperreports.view.JRViewer;
    * @author TANVIR AHMED
    public class ReportsViewer extends javax.swing.JInternalFrame {
    * Creates new form MyiReportViewer
    private ReportsViewer()
    super("Report Viewer",true,true,true,true);
    initComponents();
    setBounds(10,10,600,500);
    setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    public ReportsViewer(String fileName)
    this(fileName,null);
    public ReportsViewer(String fileName,HashMap parameter)
    this();
    try
    /* load the required JDBC driver and create the connection
    here JDBC Type Four Driver for MySQL is used*/
    //Class.forName("com.mysql.jdbc.Driver");
    Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE", "invoice", "item");
    //Connection con=DriverManager.getConnection("jdbc:mysql://localhost/inventory","root","karim");
    /*(Here the parameter file should be in .jasper extension
    i.e., the compiled report)*/
    JasperPrint print = JasperFillManager.fillReport(
    fileName, parameter, con);
    JRViewer viewer=new JRViewer(print);
    Container c=getContentPane();
    c.setLayout(new BorderLayout());
    c.add(viewer);
    catch(SQLException sqle)
    sqle.printStackTrace();
    catch(JRException jre)
    jre.printStackTrace();
    * This method is called from within the constructor to initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is always
    * regenerated by the Form Editor.
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGap(0, 394, Short.MAX_VALUE)
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGap(0, 290, Short.MAX_VALUE)
    pack();
    }// </editor-fold>
    // Variables declaration - do not modify
    // End of variables declaration
    and
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package reports;
    import java.beans.PropertyVetoException;
    * @author TANVIR AHMED
    public class MainUI extends javax.swing.JFrame {
    * Creates new form MainUI
    public MainUI() {
    super("REPORTS");
    initComponents();
    setSize(java.awt.Toolkit.getDefaultToolkit().getScreenSize());
    setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
    jMenuItem1 = new javax.swing.JMenuItem();
    desktopPane = new javax.swing.JDesktopPane();
    salesTaxInv = new javax.swing.JButton();
    jLabel1 = new javax.swing.JLabel();
    supplyRegister = new javax.swing.JButton();
    PartyLedger = new javax.swing.JButton();
    menuBar = new javax.swing.JMenuBar();
    jMenuItem1.setText("jMenuItem1");
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    desktopPane.setBackground(new java.awt.Color(255, 204, 0));
    desktopPane.setBorder(new javax.swing.border.MatteBorder(null));
    desktopPane.setForeground(new java.awt.Color(255, 0, 102));
    desktopPane.setAutoscrolls(true);
    desktopPane.setFont(new java.awt.Font("Bookman Old Style", 0, 14)); // NOI18N
    desktopPane.setPreferredSize(new java.awt.Dimension(1024, 768));
    salesTaxInv.setBackground(new java.awt.Color(255, 255, 255));
    salesTaxInv.setFont(new java.awt.Font("Bookman Old Style", 1, 18)); // NOI18N
    salesTaxInv.setForeground(new java.awt.Color(204, 0, 0));
    salesTaxInv.setText("Sales Tax Invoice");
    salesTaxInv.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    salesTaxInvActionPerformed(evt);
    salesTaxInv.setBounds(20, 53, 200, 31);
    desktopPane.add(salesTaxInv, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLabel1.setFont(new java.awt.Font("Bookman Old Style", 0, 24)); // NOI18N
    jLabel1.setForeground(new java.awt.Color(50, 72, 255));
    jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel1.setText("Invoice System Reports");
    jLabel1.setBounds(0, -1, 1024, 50);
    desktopPane.add(jLabel1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    supplyRegister.setFont(new java.awt.Font("Bookman Old Style", 1, 18)); // NOI18N
    supplyRegister.setForeground(new java.awt.Color(204, 0, 0));
    supplyRegister.setText("Supply Register");
    supplyRegister.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    supplyRegisterActionPerformed(evt);
    supplyRegister.setBounds(20, 100, 200, 30);
    desktopPane.add(supplyRegister, javax.swing.JLayeredPane.DEFAULT_LAYER);
    PartyLedger.setFont(new java.awt.Font("Bookman Old Style", 1, 18)); // NOI18N
    PartyLedger.setForeground(new java.awt.Color(204, 0, 0));
    PartyLedger.setText("Party Ledger");
    PartyLedger.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    PartyLedgerActionPerformed(evt);
    PartyLedger.setBounds(20, 140, 200, 30);
    desktopPane.add(PartyLedger, javax.swing.JLayeredPane.DEFAULT_LAYER);
    setJMenuBar(menuBar);
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(desktopPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(desktopPane, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    pack();
    }// </editor-fold>
    private void salesTaxInvActionPerformed(java.awt.event.ActionEvent evt) {                                           
    try
    ReportsViewer myiReportViewer = new ReportsViewer("reports/INV.jasper");
    myiReportViewer.setBounds(0, 0, desktopPane.getWidth(), desktopPane.getHeight());
    myiReportViewer.setVisible(true);
    desktopPane.add(myiReportViewer);
    myiReportViewer.setSelected(true);
    catch (PropertyVetoException pve)
    pve.printStackTrace();
    private void supplyRegisterActionPerformed(java.awt.event.ActionEvent evt) {                                              
    try
    ReportsViewer myiReportViewer = new ReportsViewer("reports/supplyRegister.jasper");
    myiReportViewer.setBounds(0, 0, desktopPane.getWidth(), desktopPane.getHeight());
    myiReportViewer.setVisible(true);
    desktopPane.add(myiReportViewer);
    myiReportViewer.setSelected(true);
    catch (PropertyVetoException pve)
    pve.printStackTrace();
    private void PartyLedgerActionPerformed(java.awt.event.ActionEvent evt) {                                           
    try
    ReportsViewer myiReportViewer = new ReportsViewer("reports/CustomerLedger.jasper");
    myiReportViewer.setBounds(0, 0, desktopPane.getWidth(), desktopPane.getHeight());
    myiReportViewer.setVisible(true);
    desktopPane.add(myiReportViewer);
    myiReportViewer.setSelected(true);
    catch (PropertyVetoException pve)
    pve.printStackTrace();
    * @param args the command line arguments
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new MainUI().setVisible(true);
    // Variables declaration - do not modify
    private javax.swing.JButton PartyLedger;
    private javax.swing.JDesktopPane desktopPane;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuBar menuBar;
    private javax.swing.JButton salesTaxInv;
    private javax.swing.JButton supplyRegister;
    // End of variables declaration
    Best Regards

    Dear Sir,
    I am using the swing code and running the jasper report with the above code.
    Realy!
    I start the thread with this code
    @FXML
    private void mainUiButtonAction(ActionEvent event) {
    try{
    new MainUI().setVisible(true);
    catch(Exception ex){                 
    }

  • Is there an equivalent statement in Java for this PL/SQL stmt?

    Hi,
    I want to know if there is an equivalent statement
    in java for this PL/SQL statement:
    IF strTok IN('COM-1','COM-2','COM-3') Then
    /* Do Something */
    End If;
    I tried using : // This is giving me errors..
    if (strTok.equals(("COM-1") || ("COM-2") || ("COM-3") ) )
    /* Do Something */
    The above Java code is giving me errors.
    Any Help to reduce the number of steps for comparison
    is appreciated.
    thanks in adv
    Sharath

    Something like
    if (strTok.equals("COM-1") ||
        strTok.equals("COM-2") ||
        strTok.equals("COM-3") )Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Create a table in SQL with datatype equivalent to LongBlob

    I have a mySQL or phpMyadmin table (nor sure) (with longblob fields) that I want to convert to SQL Server.
    Here is a link to a Rar with two files, the 'ORIGINAL CODE.sql' is the original code sample and the 'NEW_SQL_CODE.sql' is the code I am writing in SQL to create a database.
    Click to download the two files.
    I fail to make the insert in the 'NEW_SQL_CODE.sql', it says (translated from spanish) something like "The binary data will be truncated"
    INSERT INTO inmuebles_fotos (ci_inm, pos, foto, mini, comentario, inet, impr_cartel, impr_visita) VALUES
    (6, 0, 0xffd8ffe000104a46494600010100000100010...etc...
    I don’t know how if I have defined the wrong data type (image) equivalent to the MySQL LongBlob. All I want to do is to make that insert in SQL and save that image as jpg if possible. I don't know if it's not posible in SQL and can only
    be done in MySQL.
    Thanks for any help.

    The original table is not mine; I am just trying to save the images as .jpg in hard drive.
    Here is the original table I have that has 500Mb in pictures, in the sample there is only 1 picture:
    CREATE TABLE IF NOT EXISTS `inmuebles_fotos` (
    `ci_inm` int(10) unsigned DEFAULT NULL,
    `pos` smallint(6) DEFAULT NULL,
    `foto` longblob,
    `mini` longblob,
    `comentario` varchar(100) DEFAULT NULL,
    `inet` tinyint(3) unsigned DEFAULT '0',
    `impr_cartel` smallint(6) DEFAULT '0',
    `impr_visita` smallint(6) DEFAULT '0'
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    And here is the equivalent table in SQL that I am trying to create to import al registers so I can save the pictures from SQL Server that is what we use here.
    CREATE TABLE [dbo].[inmuebles_fotos2](
    [ci_inm] [int] NULL,
    [pos] [int] NULL,
    [foto] [image] NULL,
    [mini] [image] NULL,
    [comentario] [varchar](1) NULL,
    [inet] [int] NULL,
    [impr_cartel] [int] NULL,
    [impr_visita] [int] NULL
    Sorry for the trouble, I am trying everything I get my hands on until I get to save those images in “0x1234567890ABCDE…….” Format.
    I'll try anything you sugest me but I have only use SQL Server so that's why I'm trying this road first.
    Thanks for your help.

  • Best app to give equivalent of microsoft office

    I use a PC with office and need to find the equivalent to use on MacBook which is the best please?

    How about?
    http://www.microsoft.com/MAC

  • MM03 equivalent DS for BW

    Hi, what is the equivalent DS in LBWE to capture MM03 data for sales org 2.  How do we make a report in BW for this requirement.  I need the DS for this.
    Thanks,
    Radha

    Hi,
    You can try to use datasource 0MAT_SALES_ATTR...
    If you would like to create queries based on characteristic values you should first create it as InfoProvider (in RSA1 go to InfoProvider and from menu choose something like "Create characteristic as...").
    Krzys

  • How to Create new entry, while keeping CoS and nsRoles in tact...

    Hi,
    Here's the short version:
    How can one create a new entry/context in DS, copy the attributes from an existing entry (using JNDI) and save them in the new entry/context WITHOUT duplicating CoS or nsRole/DN info.
    Long version of the question:
    We are using DS 5.2 and Portal 6 (and messenger/calendar etc). We have our employees saved in DS. What I want to do is change a user's name/uid by copying the user's attributes (in JNDI) and create a New entry with the New uid, with all the other attributes the same. Then deleting the original entry.
    This is what I have done...
    1. Get all the employee's attributes... (abriviated)(ctx is the DirContext)
    NamingEnumeration answer = ctx.search(searchBase, filter, ctls);
    SearchResult sr = (SearchResult)answer.next();
    Attributes attrs = sr.getAttributes();
    2. Create a new employee with the same attributes (assume I use a different uid in the dn)
    ctx.createSubcontext(dn, attrs);
    This works...it copies all the attributes to the new entry -BUT- when you look at the LDIF file, it ADDS several more attributes to the new entry.
    Example: it adds the following...
    sunPortalNetletRules
    sunPortalGatewayEnableSSO
    sunPortalDesktopDpDocument
    sunPortalDesktopDpLastModifiedUser
    iplanet-am-user-auth-modules
    And about 20 others...
    Now if I am not mistaken, these are the CoS and roles that the DS uses and propagates down to the entry. But when I copy the attributes over, (using JNDI) I get these attributes too but I want to copy only the attributes that are unique and have DS handle the roles and CoS like it does for the original entry.
    Is there a way to tell the DS to just use the CoS or roles instead of duplicating all these attributes in this individual entry??? (and do it using JNDI)
    (sorry this question is sooooo long.)
    Thanks!
    Eric

    Hello Viji,
    I am extremely thank ful for the document.
    Kindly help me with below points of possible
    1)     if it is standard table (LFBK) , even then shall we will need to do the generate program 
    step in SCDO ?
    2)     does it generate Z-function module ?
    3)     do we need to call this function module at appropriate places to update the CDPOS and CDHDR 
    for changes in the standard table ?
    4)     I have already created custom business object for LFBK so that Iu2019ll be able to create entry 
    in SWEC (fyi)
    5)     how and when are the method used in the table maintenance generator called ?
    6)     Page 14 point 3 says that "Add a new entry to link the Change Document Object ZPRPS_CD and 
    table ZPRPS so that changes are recorded when table entries change."
    Does this mean that once we create SCDO and generate program, these two steps are  enough 
    for the SWED entry to create change log in CDPOS and CDHDR ?
    7)     It is understood that it is necessary that the change object in SWEC should be logged in 
    CDPOS and CDHDR only then the event would be created for the SWEC entry. is this correct ?
    in order to create change log for the change object in CDHDR and CDPOS, is the SCDO entry 
    and generate program steps enough or the methods of table  maintenance generator are also 
    required ?
    thank you very much for your time
    B

  • I want to cancel my billing cos i didnt pay anything and it wont let me download any apps free

    i try download apps free but it keep say tap continue and sign in view billing information and i didnt pay anything so how i stop it happen and cancel any payment cos i think my son accdient press any thing so pls help me

    You will not be able to download anything - even free apps - until you
    resolve the problem with your account.
    You might want to start with these 2 links:
    http://www.apple.com/support/itunes/contact/
    https://getsupport.apple.com/Issues.action

  • Nano3rdgen Copying playlist from itunes to ipod and it says it can't copy certain songs to ipod cos of file type.These problem songs all from same album, all ACC file type and all copied fine when I copied the album itself few weeks ago-help!

    When copying playlist from itunes to nano3rd message comes saying 9 of songs can't be copied to ipod cos of file type. These 9 are all from same album, all ACC and all copied fine when I copied the album itselm some weeks ago.  Rest of playlist was ACC too.  P.S. album is a CD-R copied version-is this an issue? HELP I AM DESPAIRING!

    I never laughed in all my life. Here I was, inserting the cd Dance with Me, thinking it's not going to copy the whole thing. yeah, right.
    Sure, it prompted me, Do I want to replace the songs, so of course I said "no, don't replace the songs". and guess what it did. It copied the whole cd (at least I got my two songs).
    I went into the itunes library, and sure enough, all the songs were there twice. So what did my intelligent brain think of? I just unchecked the doubled songs and stuck my ipod into my computer and it synched up and I got what I wanted.
    Now what did I do wrong when it prompted me. I clicked on "don't replace" and it replaced them anyway.
    Am I dumb? or is itunes stupid?
    thanks, Melody

  • Not able to enable SSH user equivalency for RAC on RHEL 4

    Hi All,
    I am trying to install oracle RAC 11g on RHEL4 (on VMware), I am using below document for reference.
    http://www.oracle-base.com/articles/11g/OracleDB11gR1RACInstallationOnOEL5UsingVMware.php
    Every thing went fine till "SSH user equivalency", but I am not able to SSH and SCP between servers without entering passwords.
    I have tried removing .ssh folder & recreating pub file twice but it did not helped.
    am i missing something?
    Please advice.
    Thanks,
    Abhay.

    Configure SSH on each node in the cluster. Log in as the "oracle" user and perform the following tasks on each node.
    su - oracle
    mkdir ~/.ssh
    chmod 700 ~/.ssh
    /usr/bin/ssh-keygen -t rsa # Accept the default settings.
    The RSA public key is written to the ~/.ssh/id_rsa.pub file and the private key to the ~/.ssh/id_rsa file.
    Log in as the "*oracle*" user on RAC1, generate an "authorized_keys" file on RAC1 and copy it to RAC2 using the following commands.
    su - oracle
    cd ~/.ssh
    cat id_rsa.pub >> authorized_keys
    scp authorized_keys rac2:/home/oracle/.ssh/
    Next, log in as the "oracle" user on RAC2 and perform the following commands.
    su - oracle
    cd ~/.ssh
    cat id_rsa.pub >> authorized_keys
    scp authorized_keys rac1:/home/oracle/.ssh/
    The "authorized_keys" file on both servers now contains the public keys generated on all RAC nodes.
    To enable SSH user equivalency on the cluster member nodes issue the following commands on each node.
    ssh rac1 date
    ssh rac2 date
    ssh rac1.localdomain date
    ssh rac2.localdomain date
    exec /usr/bin/ssh-agent $SHELL
    /usr/bin/ssh-add
    You should now be able to SSH and SCP between servers without entering passwords.
    hope, this may helps you.
    enjoy.
    if you are unable to resolve it, please refer:-
    http://download.oracle.com/docs/cd/B28359_01/rac.111/b28252/preparing.htm#BGBBDHIB
    http://dsstos. blogspot.com/2009/03/linux-oracle-rac-and-bonding-conundrum.html

  • What is equivalent ASCP report for Planned Order&Order Reschedule Report

    What is equivalent report for Supply Chain Planned Order Report & Supply Chain Order Reschedule Report
    We are currently on MRP and running Supply Chain Planned Order Report successfully. We are planning to go to ASCP(Decentralized) next month ,what is the equivalent reports in ASCP?
    Edited by: SanDan on Jan 9, 2013 1:57 PM

    Hi ,
    You can explore the Planning Detail Report which you can run against your ascp plan. However there are few standard reports available in ascp. I suggest you can explore option of building custom report which will be best suited to your business needs (i.e. using Discoverer or if you are also implementing obiee you can build a custom report based on standard views or noitex views (- for ascp)
    Regards
    narendra

Maybe you are looking for

  • Home Sharing Videos Mark As Watched

    Greetings! I recently purchased an iPhone 4S and an enjoying the Home Sharing features, but I have noticed some issues noted in other discussions, namely the dropped connection with the AppleTV 2.  I have also noticed issue with the Home Sharing drop

  • Logging pageflow - In a Hurry...please help :)

    Hi guys, I need to log messages from my pageflow into a log file. All my pageflows are inside a root package called pageFlows. my log4j.properties is specifying log4j.logger.pageFlows=debug, myLogger log4j.appender.myLogger=org.apache.log4j.DailyRoll

  • X-FI ExtremeMusic and old Live Drive

    Hi, I have purchased an X-FI ExtremeMusic card. I have an old front bay Li've Dri've II?connection box from my old SoundBlaster Li've! PlatinumI know the pin-outs are different. If you look at the following links, they show the pin-outs for the X-Fi?

  • How do I get rid of the community toolbar error message

    how do I get rid of the community toolbar error message

  • Is Nova's Art Explosion 800,00 compatible with Mountain Lion OSX 10.8.2?

    I would be interested to know if Nova's Art Explosion 800,000 in compatible with Mountain Lion OSX 10.8.2. This is one of the clip art software programs I am considering. If this program is not compatible, can anyone recommend a compatible program I