Skip to Content
avatar image
Former Member

How to pass PowerBuilder blob variable to C# external function

C# function:

public static byte[] Test(byte[] argbBytes)
{
    return argbBytes;
}

PB declaration:

FUNCTION Blob Test(Blob argbBytes) LIBRARY "TestLibrary1.dll" ALIAS FOR "Test"

PB call:

Blob lbl_Blob1, lbl_Blob2
lbl_Blob1 = Blob("test", EncodingAnsi!)
lbl_Blob2 = Test(lbl_Blob1)

Error I am getting:

Unsupported argument type in DLL function test at line 3 ...

Works with strings, integers and any other type I throw at it, except blob despite archived forum post saying it should work.

PowerBuilder Version 11.5.1 Build 5097.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers