D
D
ddddd tttt2019-01-08 21:19:06
Android
ddddd tttt, 2019-01-08 21:19:06

Do not load images through the glide library?

params := mux.Vars(r)
  path := "../../files/" + params["user_id"] + "/" + params["file_id"]
  http.ServeFile(w,r,path)

The file opens in the browser but does not load on the android, although any other links to images from Yandex are loaded? What additional headers should be specified?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2019-01-08
@zagayevskiy

o_O
So this is the path relative to what? Glide can't open local files like this. Perhaps he can, if you specify the path through file:// and have read permissions ... but this is not a fact. And why such a strange way?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question