Skip to content

External datastreams

David Chandek-Stark edited this page Mar 9, 2021 · 3 revisions

NOTE: This information does NOT apply to Fedora versions 4 and higher

A datastream with a control_group = 'E' is an external datastream. An external datastream just stores a location of an external file rather than storing the file itself.

class RemoteAsset < ActiveFedora::Base
  has_metadata :name=>'content', :control_group=>'E', :type=>ActiveFedora::Datastream
end

@asset = RemoteAsset.new
@asset.content.dsLocation = "http://example.com/preserved.jpg"
@asset.save
Clone this wiki locally