cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass PowerBuilder blob variable to C# external function

cigaras
Explorer
0 Kudos

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.

Accepted Solutions (0)

Answers (0)