Thanks Erel.
I Solved That Way.
MarcoRome ibrary not supported in .net base64 function.
[CODE lang="b4x" title="Snapshot"]Sub Camera1_PictureTaken (Data() As Byte)
'
Dim su As StringUtils
Dim base64 As String = su.EncodeBase64(Data)
Log(base64) 'limit 4000 char..
End Sub[/CODE]
Thus, the picture was displayed on both .net and web.
[CODE lang="aspnet" title=".Net Base64 Code("] Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Try
Dim Base64Code As String = "......................................"
Dim imageBytes As Byte() = Convert.FromBase64String(Base64Code)
Dim ms As New MemoryStream(imageBytes, 0, imageBytes.Length)
Dim Btmp As New Bitmap(Image.FromStream(ms))
PictureBox1.Image = (OrientateImage(Btmp))
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Public Function OrientateImage(img As Image) As Image
Const EXIF_ORIENTATION = 274
Dim orientationTag = img.PropertyItems.FirstOrDefault(Function(x) x.Id = EXIF_ORIENTATION)
If orientationTag IsNot Nothing Then
Dim orientation As Short = BitConverter.ToInt16(orientationTag.Value, 0)
Select Case orientation
Case 3
img.RotateFlip(RotateFlipType.Rotate180FlipNone)
Case 6
img.RotateFlip(RotateFlipType.Rotate90FlipNone)
Case 8
img.RotateFlip(RotateFlipType.Rotate270FlipNone)
Case Else
End Select
End If
Return img
End Function[/CODE]