This week's book giveaway is in the Flex forum. We're giving away four copies of Flex 4 in Action and have Tariq Ahmed, Dan Orlando, John C. Bland II & Joel Hooks on-line! See this thread for details.
"The set strikes me as something like the set of potatoes, radishes, farming, and lunch. " - a colleague's way of comparing both overlapping and disparate groups. made me laugh and thought of the ranch
You can also use setBinaryStream() but there will be some limitations for that. I guess we cannot upload more than 4KB if we use setBinaryStream(). Any ways try out the following code...
org.apache.struts.upload.FormFile formfile=Fileinfo.getFile(); //The above step gets the formfile object from Fileinfo class. PreparedStatement ps=null; Connection con=Coredb.getConn(); try { String fileName=formfile.getFileName(); int fileSize=formfile.getFileSize(); byte bb[]=formfile.getFileData();
ps=con.prepareStatement("insert into fles values(?,?,?)"); ps.setString(1,fileName); ps.setInt(2,fileSize); ps.setBytes(3,bb); }
Originally posted by Muhammad Saifuddin: as Jeanne already point you the tip regarding your query. now its time to do some googling on your criteria.
Muhammed, I understand that individuals should do their homework also they have to show some efforts, but at the same time being a new user (greenhorn) the OP might have been in a curiosity to ask further. They may not be really aware of the rules. We have to understand and respect that as well.
It would be better if we can point out to the links so that they can proceed further.
"The set strikes me as something like the set of potatoes, radishes, farming, and lunch. " - a colleague's way of comparing both overlapping and disparate groups. made me laugh and thought of the ranch