VintaSoft Barcode .NET SDK Discussions
Questions, comments and suggestions concerning VintaSoft Barcode .NET SDK.
Board index < VintaSoft Barcode < VintaSoft Barcode .NET SDK Discussions
Friend Shared Function GetStringFromVCard() As String
Dim inFile As System.IO.FileStream
Dim binaryData As Byte()
inFile = New System.IO.FileStream(<filename>.vcf,
System.IO.FileMode.Open,
System.IO.FileAccess.Read)
ReDim binaryData(CInt(inFile.Length))
Dim bytesread As Integer = inFile.Read(binaryData, 0, CInt(inFile.Length))
inFile.Close()
Dim base64string As String = System.Convert.ToBase64String(binaryData, 0, binaryData.Length)
Return base64string
End Function
If I copy the returned string into the BarcodeWriter's <value> property, I get an error "Data region is too large". The string has got more than 7.000 characters. Is this too long for any Barcode or is anything wrong in my code? I tried QR, Aztec, DataMatrix, MaxiCode