in view:
<%=@patient.image  %>

in controller

   @user=Picture.all(
         :joins => :culture,
                  :conditions => (Phrase.joins(:description))).first

and it shows this on the screen,

GIF89a  �   ��ý����f�* ����zd����:2eZJ�������R �̙����ݼ�iZA:0��ޙ������B 
���|||����^R����c �������Ͼ�ϫthS�


if i use ==> <%=image_tag(@user.image)  %> it will error me "string contains
null byte"

give help.. thanks


On Fri, Jun 10, 2011 at 11:47 AM, Colin Law <clan...@googlemail.com> wrote:

> On 10 June 2011 16:40, joanne <joanne0...@gmail.com> wrote:
> > Hi all,
> >
> > I want to display the picture(BLOD type in sqlite3 in Ubuntu)
> > I cannot display picture on the screen., i just show some decode
> > stuff.
>
> It is no good just saying you cannot display it and you get some
> 'decode stuff'.  Show us the code you have written that you think
> should display the picture and whatever is shown on screen where the
> image should be displayed.  First have a look at the html being
> generated (View > Page Source or similar in your browser) and make
> sure that the html being generated is what you expect.  I would expect
> you to be using image_tag to show the image.
>
> > and i try to use the plug in  paperclip..
> > and when i install it on the current project,, I cannot run my server
> > in Terminal,,
>
> Is this a separate question?  If so I would advise just having one
> question in a post, otherwise the answers to the two questions will
> get mixed up.  Again though it is no good just saying you cannot run
> the server, otherwise the only reply you will get is that you are
> doing something wrong.  Tell us the error message when you run the
> server.
>
> Colin
>
> Colin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>


-- 
--------------------------------

Thank you,

Yen

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to