Solved

uploading a file using nsIDOMFile to a BLOB field in database with servlets

Posted on 2008-10-21
1
492 Views
Last Modified: 2013-12-07
Hi i want to upload a JPG image file in a BLOB field in database. Since <input type="file" /> does not generate full path in firefox3 so i am using getAsBinary(); method of nsIDOMFile to send image's data in raw binary format to the servlet.
Now how to convert this string received as request.getParameter("image"); in the servlet to the inputstream so that it can be sent to the database using preparedstatement.setBinaryStream() method.
0
Comment
Question by:thunderwonder
1 Comment
 
LVL 2

Accepted Solution

by:
thunderwonder earned 0 total points
ID: 22779691
I think this question is too complex for the experts here & i haven't got much time so i'll withdraw it and look somewhere else
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Jquery GMAP3 Hierarchy 1 28
Checkout Page Input Field not aligned 1 23
Java: The Public Class Main 4 16
Hide Table in merge 3 10
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn how to implement Singleton Design Pattern in Java.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question