Hi all,
I have taken a picture(BLOB) in the DB (sqite3),
I have a problem to display picture on the screen.
Can anyone help me and give me some advices please…
Thank you so much
Hi all,
I have taken a picture(BLOB) in the DB (sqite3),
I have a problem to display picture on the screen.
Can anyone help me and give me some advices please…
Thank you so much
On 12/06/2011, joanne [email protected] wrote:
I have taken a picture(BLOB) in the DB (sqite3),
I have a problem to display picture on the screen.
Can anyone help me and give me some advices please
Amritpal? Is that you?
On Sat, Jun 11, 2011 at 6:02 PM, joanne [email protected] wrote:
I have taken a picture(BLOB) in the DB (sqite3),
I have a problem to display picture on the screen.
Can anyone help me and give me some advices please…
Sure. My advice is: don’t do that.
Store static images in the file system and serve them the normal way.
Hassan S. ------------------------ [email protected]
twitter: @hassan
no no no lol
On Sat, Jun 11, 2011 at 10:05 PM, Michael P. [email protected]
wrote:
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
–
Hi, do you have any other options for me… cuz i really have to do in
this
way
Thanks
On Sat, Jun 11, 2011 at 10:07 PM, Hassan S. <
thanks i found the way to display the picture on the screen by using
sent_data method to convert link
On Jun 11, 10:45pm, Hassan S. [email protected]
Instead of trying to re-invent the wheel, or a picture of that wheel,
take a look at Paperclip or Carrierwave. Both are plugins that make
storing and displaying pictures simple.
I would recommend as well to use a file system storage solution
depending on the scale of the project
On Sat, Jun 11, 2011 at 7:17 PM, joanne ta [email protected] wrote:
Hi, do you have any other options for me… cuz i really have to do in this
Then write a controller to fetch the image data from the DB and deliver
it with the appropriate content-type.
Put the URL of that controller/image in your HTML as the image source
attribute.
That’s it. Best of luck!
–
Hassan S. ------------------------ [email protected]
twitter: @hassan
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs