Skip to Content

How to pass PowerBuilder blob variable to C# external function

Dec 07, 2016 at 09:13 AM


avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers