Displaying Images Stored in database as Oracle Long Format

hi list,

How do i render an image stored in the database in Oracle Long format?

In controller

def logo
@trademark = Trademark.find(“TT/M/1/36517”)
send_data @trademark.logo.sector_data.to_blob, :filename =>
“logo.jpg”,
:type => “image/jpeg”, :disposition => “inline”
end

in view
Image

browser
Image is not being rendered in the browser.

Regards,
Leon leslie.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs