S stephane..blusson Member Licensed User Oct 29, 2021 #1 Hello, I am developing a chat that has the ability to send video messages. I used CameraView on Android and everything works and there are no problems, but on ios I found this example https://www.b4x.com/android/forum/threads/imedia-library-camera-and-videoview.46144/#content , but I have a question: how can I save a video file on a device with a specific name, which I give with a code, to upload it to the server using ftp?
Hello, I am developing a chat that has the ability to send video messages. I used CameraView on Android and everything works and there are no problems, but on ios I found this example https://www.b4x.com/android/forum/threads/imedia-library-camera-and-videoview.46144/#content , but I have a question: how can I save a video file on a device with a specific name, which I give with a code, to upload it to the server using ftp?
Semen Matusovskiy Well-Known Member Licensed User Oct 29, 2021 #2 Photo - in Cam_Complete you can create OutputStream and to save a photo by any name. Code: OutputStream = File.OpenOutput (File.DirDocuments, "AnyName.JPG", False) Image.WriteToStream (OutputStream, 100, "JPG") Video - You can, for example, to copy, where you want Code: File.Copy (VideoPath, "", File.DirTemp, "anyname.mov") File.Delete (VideoPath, "") Upvote 1
Photo - in Cam_Complete you can create OutputStream and to save a photo by any name. Code: OutputStream = File.OpenOutput (File.DirDocuments, "AnyName.JPG", False) Image.WriteToStream (OutputStream, 100, "JPG") Video - You can, for example, to copy, where you want Code: File.Copy (VideoPath, "", File.DirTemp, "anyname.mov") File.Delete (VideoPath, "")