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
Tim Cooke
paul wheaton
Liutauras Vilda
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Devaka Cooray
Paul Clapham
Saloon Keepers:
Scott Selikoff
Tim Holloway
Piet Souris
Mikalai Zaikin
Frits Walraven
Bartenders:
Stephan van Hulst
Carey Brown
Forum:
Servlets
Uploading Files as Blob Data Type
Michele Smith
Ranch Hand
Posts: 421
posted 10 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>
Getting married means "We're in love, so let's tell the police!" - and invite this tiny ad to the wedding:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
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...