Solved

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

Posted on 2008-10-21
1
495 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.

856 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