hola estoy intentando guardar una foto y me sale el siguiente foto.
(ErrnoException) android.system.ErrnoException: open failed: EISDIR (Is a directory)
estoy haciendo esto :
alguien me puede orientar.
gracias.
Sub Camera1_PictureTaken (Data() As Byte)
Try
Dim filename As String =nombre_foto '&".jpg"
Dim dir As String
If File.ExternalWritable Then
dir =File.DirDefaultExternal
Else
dir =File.DirInternal
End If
cam2.SavePictureToFile(Data, dir, filename)
cam2.StartPreview 'restart preview
'send a broadcast intent to the media scanner to force it to scan the saved file.
Dim Phone As Phone
Dim i As Intent
i.Initialize("android.intent.action.MEDIA_SCANNER_SCAN_FILE", _
"file://" & File.Combine(dir, filename))
Phone.SendBroadcastIntent(i)
ToastMessageShow("Foto guardada." & CRLF & "File size: " & File.Size(dir, filename), True)
Catch
ToastMessageShow("Erroe en directorio :"&LastException,True)
Log("Erroe en directorio :"&LastException)
End Try
End Sub
(ErrnoException) android.system.ErrnoException: open failed: EISDIR (Is a directory)
estoy haciendo esto :
alguien me puede orientar.
gracias.
Sub Camera1_PictureTaken (Data() As Byte)
Try
Dim filename As String =nombre_foto '&".jpg"
Dim dir As String
If File.ExternalWritable Then
dir =File.DirDefaultExternal
Else
dir =File.DirInternal
End If
cam2.SavePictureToFile(Data, dir, filename)
cam2.StartPreview 'restart preview
'send a broadcast intent to the media scanner to force it to scan the saved file.
Dim Phone As Phone
Dim i As Intent
i.Initialize("android.intent.action.MEDIA_SCANNER_SCAN_FILE", _
"file://" & File.Combine(dir, filename))
Phone.SendBroadcastIntent(i)
ToastMessageShow("Foto guardada." & CRLF & "File size: " & File.Size(dir, filename), True)
Catch
ToastMessageShow("Erroe en directorio :"&LastException,True)
Log("Erroe en directorio :"&LastException)
End Try
End Sub