Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 1st, 2004, 11:40 PM
Registered User
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem in inserting blob data to oracle


I try insert image files to Oracle BLOB Cloumm

image files not saved in local file system ( ex, c:\0.jpg )

how can i insert image files stored in web ?

ex.. http://xxxx.net/xxxxx.jpg ,, and so on

when i insert my image file stroed in local system ,
i use new File("c:\\0.jpg")

but new File("http://xxxxxxxxxxxxx.net/xxxxxxxxxxx.jpg")
has not worked successfully

please help me T_T:(

Old December 2nd, 2004, 01:40 PM
Friend of Wrox
Join Date: Jul 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts

Have a look in the forums, this is a common queston.
This thread shows how its done in MySQL, should work for Oracle also:


Old December 2nd, 2004, 01:44 PM
Friend of Wrox
Join Date: Jul 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts

Sorry I misread your question.
You say you can insert on a local machine, but not on the web.
Are you using an html form to upload the image?

If you are and your form uses the GET method, all you are sending is the filepath, ok on a local machine where your 'server' has access tot the file.

If you try to use forms on a remote server, you need to use the POST method which actually sends the data.

Does this answer your question??

Similar Threads
Thread Thread Starter Forum Replies Last Post
BLOB: file is empty after retrieving blob data thr taraprasad Pro JSP 0 May 22nd, 2008 10:02 AM
insert image in to oracle blob data type rajesh_bamane Pro VB Databases 3 July 15th, 2006 02:06 AM
Display RTF data From oracle BLOB to RichTextBox saravananedu VB How-To 2 July 26th, 2005 12:03 AM
Problem inserting blob data/uploading file - MySQL kyle_shea Beginning PHP 2 February 15th, 2005 10:18 AM
inserting blob data into database taoufik Beginning PHP 2 November 19th, 2004 09:28 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.