To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=56643


User msc changed the following:

                  What    |Old value                 |New value
================================================================================
               Assigned to|dbaneedsconfirm           |oj
--------------------------------------------------------------------------------
          Target milestone|---                       |OOo Later
--------------------------------------------------------------------------------




------- Additional comments from [EMAIL PROTECTED] Mon Feb  6 06:23:51 -0800 
2006 -------
Hi,

I can reproduce this, reassign it to the right developer and set target.

- inside a form document I create a new macro

Sub Main

        oDB = ThisComponent.getParent().DataSource
        
        oCon = oDB.getConnection("","")
        
        oStatement = oCon.PrepareStatement( "insert into images (image) values 
(?)" )

        oSimpleFileAccess = 
createUnoService("com.sun.star.ucb.SimpleFileAccess")

        oStream = oSimpleFileAccess.openFileRead("/localuser/qamsc/blah.png")
        Dim oData()
        Dim lLen As Long
        lLen = oStream.getLength()   
        ReDim oData(0 To lLen-1)
        oStream.readBytes(oData(), lLen)

        oStatement.setBinaryStream(1, oStream, oStream.getLength())

End Sub

- when I start the macro I get the error messages

Invalid argument in JDBC call : input stream is null

bye Marc

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to