From: Alexey Petrushin Date: 2008-06-12T01:14:52+09:00 Subject: Re: Insert large binary file in database (MySQL) In Java it can be done this way: File file = new File("/home/sumedha/sumedha.jpg"); fis = new FileInputStream(file); ps = conn.prepareStatement("insert into pictures(id, name, photo) values (?, ?, ?)"); ps.setString(1, "001"); ps.setString(2, "sumedha"); ps.setBinaryStream(3, fis, (int) file.length()); ps.executeUpdate(); conn.commit(); hope Ruby also has something similar ... -- Posted via http://www.ruby-forum.com/.