Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JDBC and Relational Databases
upload image in struts
muntago Richard
Ranch Hand
Posts: 82
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
i need to upload image from browser to database
using
struts
I set my setters and getters as follow
private File photo; public File getPhoto() { return photo; } public void setPhoto(File photo) { this.photo = photo; }
AM using prepared statement so i try this
ps.setFile(1,photo);
but is no working.
so i equally try this but no progress
FileInputStream fin1 = new FileInputStream(photo); ps.setBinaryStream(1,fin1,(int)photo.length());
any help please
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
how to upload pdf files to My sql with java
Merge and split file
How to preview uploaded image before inserting into the database
Split and Merge large zip files
file upload functionality in Java
More...