Android Question [B4X] SimpleMediaManager (SMM) - Load media from Url-firebase storage

Solution
Interesting case. The server doesn't support HEAD requests. This is required when the mime type is unknown. I've added an error message for this (when SMM_DEBUG symbol is added).

The solution is to explicitly set the mime:
B4X:
MediaManager.SetMediaWithExtra(Pane3, "https://firebasestorage.googleapis.com/v0/b/speed-club.appspot.com/o/public%2F-NL1cVa7yP0cKmt-PZ7o.jpeg?alt=media&token=754c51fc-5c1b-4607-be02-e2aa1e05f2b4", "image/jpeg", Null)
ResponseError. Reason: , Response:
ViewPostIme pointer 0
ViewPostIme pointer 1
-1 received
writer error
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2056)
 

Attachments

  • Screenshot_20230111_212316.jpg
    78 KB · Views: 162
Last edited:
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Interesting case. The server doesn't support HEAD requests. This is required when the mime type is unknown. I've added an error message for this (when SMM_DEBUG symbol is added).

The solution is to explicitly set the mime:
B4X:
MediaManager.SetMediaWithExtra(Pane3, "https://firebasestorage.googleapis.com/v0/b/speed-club.appspot.com/o/public%2F-NL1cVa7yP0cKmt-PZ7o.jpeg?alt=media&token=754c51fc-5c1b-4607-be02-e2aa1e05f2b4", "image/jpeg", Null)
 
Upvote 0
Solution
SOLVED . Thanks a lot for your support
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…