Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Upload モジュールを使用してファイルを Opa データベースに保存しました。
ここで、データベースからこれらのファイルをダウンロードしたいと思います。どうやってやるの ?
何か案が ?
ありがとう、
ケーマン
あなたの問題は正確には何ですか?
データベースから値を取得する方法をすでに知っていると思います。次に、このファイルを次のように提供する必要があります。
url_parser = parser | "/file.pdf" -> Resource.binary(v,"application/pdf")
Resource.binaryについてもっと読むResource.source here:
Resource.binary
Resource.source here
http://doc.opalang.org/api/#stdlib.core.web.resource.resource.opa.html/!/value_stdlib.core.web.resource.Resource.binary
http://doc.opalang.org/api/#stdlib.core.web.resource.resource.opa.html/!/value_stdlib.core.web.resource.Resource.source