Module: Engine2::BlobSupportAction
- Included in:
- DownloadBlobStoreAction, DownloadForeignBlobStoreAction
- Defined in:
- lib/engine2/action/infra.rb
Instance Method Summary collapse
Instance Method Details
#serve_blob(handler, entry, inf) ⇒ Object
83 84 85 86 87 88 |
# File 'lib/engine2/action/infra.rb', line 83 def serve_blob handler, entry, inf handler.permit entry handler. entry[inf[:name_field]] handler.content_type (entry[inf[:mime_field]].to_s.empty? ? "application/octet-stream" : entry[inf[:mime_field]]) entry[inf[:bytes_field]].getBinaryStream().to_io.read end |