I want to store image data in amazon's SimpleDB database using rails.
I have created a table called "Photo_info" which have field called "photo_data" and the data type of that field is "string".
My code is:
path = "C:/test_sqs/public/images/rails.png"
File.open(path, 'rb'){ |file| @data= file.read }
what should i do?