This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JDBC and the fly likes insert BLOB into informix Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "insert BLOB into informix" Watch "insert BLOB into informix" New topic
Author

insert BLOB into informix

Santosh Maskar
Ranch Hand

Joined: Jul 02, 2003
Posts: 226
anybody know how to insert the blob in infromix

create table blobtest( b1 blob)

insert into blobtest values (b1 ???)


thanks you
santosh
[ March 11, 2005: Message edited by: Santosh Maskar ]
Horatio Westock
Ranch Hand

Joined: Feb 23, 2005
Posts: 221
I know nothing of informix, but are you using PreparedStatement?

Santosh Maskar
Ranch Hand

Joined: Jul 02, 2003
Posts: 226
actully i need to insert using plain jdbc code, but before that i want to insert from the SQL editor
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26499
    
  78

Santosh,
If it was a clob you could use the varchar syntax to insert. As far as I know, it isn't really possible to type binary.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Santosh Maskar
Ranch Hand

Joined: Jul 02, 2003
Posts: 226
Thanks Jeanne,

i am googling on this, there is somthing called as create blob_id


but thanks to your reply.

Thanks
Santosh
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: insert BLOB into informix
 
Similar Threads
ORA-01460: unimplemented or unreasonable conversion requested
StreamCorruptedException
Not able to insert image more than 4K in Database
Java : Clob : Help!
insert image into oracle