no way to read image data from database

Hi

    send_data(project_snapshot.db_file.data,                               :type => project_snapshot.content_type,                               :filename => project_snapshot.filename,                               :disposition => 'inline')

  Can you try here StringIO.new(project_snapshot.db_file.data)?

Sijo