Rails Problem - Ms Sqlserver image columns and Rails

Discussion in 'Ruby' started by erhan, Jun 30, 2006.

  1. erhan

    erhan Guest

    Hi,

    We are suffering from SQLSErver image column problem...
    We have a image column stored in SQL Server 2005 and
    We used the technique told in "Agile Web Dev with Rails" to display it
    in a web browser...


    But, all we get is numbers... And img tag can not display it...


    Could you know a workaround for this problem, and if it is so, could
    you share it with us... Is this specific to Ms SqlServer?


    Here is controller action sending image data...
    def GetPict
    @p = Personel.find("5049-0361")
    send_data @p.Pict,
    :filename => "pict.bmp", :type =>
    "image/bmp",
    :disposition => "inline"
    End


    And here is corresponding rhtml part....
    <tr><td>
    <img src = "<%= url_for:)action => "GetPict") %>" />
    </td></tr>


    Thanks in advance....
     
    erhan, Jun 30, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Phl
    Replies:
    0
    Views:
    383
  2. helpful sql
    Replies:
    0
    Views:
    839
    helpful sql
    May 19, 2005
  3. Replies:
    4
    Views:
    951
  4. =?Utf-8?B?SmVmZnJleQ==?=

    Upgrading ASP w/SQLserver 2000 to ASP.NET w/ SQLserver 2005

    =?Utf-8?B?SmVmZnJleQ==?=, Apr 6, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    507
    sloan
    Apr 27, 2007
  5. DBA.9999
    Replies:
    2
    Views:
    223
    DBA 9999
    May 3, 2010
Loading...

Share This Page