Hello,
I am trying to convert some code that looks like this in .NET (VB):
Dim mySize As Long
Dim myArray() As Byte
mySize = AxSigPlus1.BitMapBufferSize()
ReDim myArray(mySize)
myArray = AxSigPlus1.GetBitmapBufferBytes()
Dim ms As New MemoryStream(myArray)
into Progress. Here is the code I have:
DEFINE VARIABLE bufferArray AS INTEGER EXTENT NO-UNDO.
DEFINE VARIABLE bufferSize AS INTEGER NO-UNDO.
DEFINE VARIABLE memoryStream AS System.IO.MemoryStream NO-UNDO.
ASSIGN bufferSize = chSignature:BitMapBufferSize()
EXTENT(bufferArray) = bufferSize
bufferArray = chSignature:GetBitmapBufferBytes()
memoryStream = NEW System.IO.MemoryStream(bufferArray).
This compiles fine but doesn't work, because the "signature" data that is trying to be stored into the bufferArray is too big even for an integer array. But I can't get any other data type to work to compile because the integer type seems to be the only thing that I can pass into System.IO.MemoryStream (I've tried RAW, Decimal, etc with no luck).
Anyone know how I can successfully convert this into Progress (in regards to the byte array issue)?
I am trying to convert some code that looks like this in .NET (VB):
Dim mySize As Long
Dim myArray() As Byte
mySize = AxSigPlus1.BitMapBufferSize()
ReDim myArray(mySize)
myArray = AxSigPlus1.GetBitmapBufferBytes()
Dim ms As New MemoryStream(myArray)
into Progress. Here is the code I have:
DEFINE VARIABLE bufferArray AS INTEGER EXTENT NO-UNDO.
DEFINE VARIABLE bufferSize AS INTEGER NO-UNDO.
DEFINE VARIABLE memoryStream AS System.IO.MemoryStream NO-UNDO.
ASSIGN bufferSize = chSignature:BitMapBufferSize()
EXTENT(bufferArray) = bufferSize
bufferArray = chSignature:GetBitmapBufferBytes()
memoryStream = NEW System.IO.MemoryStream(bufferArray).
This compiles fine but doesn't work, because the "signature" data that is trying to be stored into the bufferArray is too big even for an integer array. But I can't get any other data type to work to compile because the integer type seems to be the only thing that I can pass into System.IO.MemoryStream (I've tried RAW, Decimal, etc with no luck).
Anyone know how I can successfully convert this into Progress (in regards to the byte array issue)?