B4X FEED Is it possible to write and read a file from RAM memory ?

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Is it possible to write and read a file from RAM memory ? است. این موضوع تا کنون 85 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Is it possible to write and read a file from RAM memory ?
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
85
پسندها
0
آخرین ارسال توسط PracticalSoft
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
Jun 6, 2020
11,576
4,480
Hello! Now I take a picture, write it to a SD card and then read it and send it to FTP server. I think the SD card might get damaged. Is it possible to write a snapshot to a temporary file in RAM memory and then read from there. If so, how?

My code now:
If File.Exists(File.DirRootExternal, "face0.jpg") Then
File.Delete(File.DirRootExternal, "face0.jpg")
End If
out = File.OpenOutput(File.DirRootExternal, "face0.jpg", False)
out.WriteBytes(jpeg, 0, jpeg.Length)
out.Close
ToastMessageShow("Image saved: " & File.Combine(File.DirRootExternal, "face0.jpg"), True)

ftp1.Initialize("ftp1","sss.com","21","test","YYYYY180160")
ftp1.UseSSL = False
ftp1.PassiveMode = True
ftp1.UploadFile(File.DirRootExternal,"face0.jpg",False,"/images/face0.jpg")

 

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
عقب
بالا