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
Tim Cooke
Ron McLeod
Jeanne Boyarsky
Paul Clapham
Sheriffs:
Liutauras Vilda
Henry Wong
Devaka Cooray
Saloon Keepers:
Tim Moores
Stephan van Hulst
Tim Holloway
Al Hobbs
Carey Brown
Bartenders:
Piet Souris
Mikalai Zaikin
Himai Minh
Forum:
JDBC and Relational Databases
upload image in struts
muntago Richard
Ranch Hand
Posts: 82
posted 9 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
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...