Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Servlets
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:
Servlets
Uploading Files as Blob Data Type
Michele Smith
Ranch Hand
Posts: 421
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello:
I think I have the basics on the Commons File upload
servlet
and configuring the database interface to work with a blob data type:
// Handle Blob Data Type public static class blobstoreService { Map<String, BlobKey> blobs = blobstoreService.getAttachment(request); BlobKey blobKey = blobs.get("myFile"); private static Map<String, BlobKey> getAttachment(Object request) { // TODO Auto-generated method stub return null; } }
Only thing is from my
JSP
file, how would I call this?
<!-- added on 5/7/2014 for the Attachment of Files (Upload a File Functionality) to the Interface Business Requirement - M.S. --> <!-- review this one more time --> <div class="form-group" id="input_attachment"> <label for="SetAttachment" class="col-lg control-label">Attach File</label> <div class="col-lg"> <%--<form action="upload" method="post" enctype="multipart/form-data"> <input type="file" name="myFile" /> --%> <input type="text" class="form-control" id="SetAttachment" name="SetAttachment" onkeyup="update(this);" > </div> </form> </div>
When evil is afoot and you don't have any arms you gotta be hip and do the legwork, but always kick some ... tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
creating thumbnail for uploaded files
how to upload a audio file using REST webservice in Google App Engine for Java
Drag and Drop Images(single or multiple) to Upload
FileUpload - Request empty with IE8
Spring MVC Request Mapping
More...