I am trying to write a dotnet memory stream to a NAV Blob field. But the below code isnt working.
Does anyone have any experience in this area? much appreciated.
bitmap := barcodeWriter.Write(BitMatrix);
bitmapMemoryStream := bitmapMemoryStream.MemoryStream;
bitmap.Save(bitmapMemoryStream,bitmapEncoder.Bmp);
// I am able to save the bitmap to the MemoryStream, but unable to write it in to the blob. all stream variables are set to run on client Yes
CALCFIELDS(VerificationQRCode);
VerificationQRCode.CREATEOUTSTREAM(outstr);
outstr.WRITE(bitmapMemoryStream);
0
Answers
First of all you don't need to use a memory stream in this case, you can use a InStream var.
And later you can move to the OutStream var like this:
Any way you can do the same with your memory stream var
Regards