hi everyone.
I've gotten the camera to work now...but I want to transmit the images via base64 and then have them decoded on the client. Its working just fine...except I can't seem to get my code to let me view the raw Base64 string...it worked at one point, but now it isn't.
I'd like to be able to see the raw base64 string in a label if possible...it was working at one point...I was working late and lost track of how I did it..I know the Base64 conversion is occuring because I'm able to see the output in a picturebox.
heres the code I'm using:
Dim bmap As Image Dim buffer() As Byte Dim ic As New ImageConverter Dim BAR As String
Try ' TAKE IMAGE, CONVERT IT TO BASE 64
bmap = Video.GetClipboardImage(Video.GethHwnd)
buffer =
CType(ic.ConvertTo(bmap, GetType(Byte())), Byte())BAR = Convert.ToBase64String(buffer)
' TAKE BASE64, CONVERT BACK TO IMAGE Dim BitmapData() As Byte
BitmapData = Convert.FromBase64String(BAR)
Dim streamBitmap As IO.MemoryStream = New System.IO.MemoryStream(BitmapData) Dim bitImage As Bitmap = Image.FromStream(streamBitmap)
'DISPLAY CHANGES
CapShow.Image = bitImage
Catch ex As Exception
MsgBox(
"FAIL!") End Try

Convert.ToBase64String problems