B4X FEED FTP upload of an existing image [SOLVED]

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

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: FTP upload of an existing image [SOLVED] است. این موضوع تا کنون 68 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع FTP upload of an existing image [SOLVED]
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
68
پسندها
0
آخرین ارسال توسط PracticalSoft
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
Jun 6, 2020
11,517
4,383
I would like the user to be able to choose an existing image and upload it to the FTP server. I tried to use the following code to identify the image:
B4X:

کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
The code returns as values:
Dir = ContentDir
FileName = content://com.android.providers.media.documents/document/image%3A5216

and obviously the upload is not performed. What should I do so that the user can upload images from anywhere on his device (internal or SD Card)?

I tried to upload an image from a known location and the code works.
B4X:

Dim sf As Object = ftp.UploadFile( File.DirRootExternal, "test.jpg", False, "test.jpg")
Thank you!

 

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