aspose file tools*
The moose likes JDBC and the fly likes how to save/load images Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "how to save/load images" Watch "how to save/load images" New topic
Author

how to save/load images

shen LIU
Greenhorn

Joined: Aug 24, 2005
Posts: 2
hello everyone,
can someone tell me how to save/load images(ex .jpg or .gif) in SQLServer? please give me a code use java, thank u!

[edited to add a meaningful subject line - original was "help me,thank u"]
[ October 23, 2005: Message edited by: Jeanne Boyarsky ]
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30929
    
158

Shen,
Welcome to JavaRanch!

There is a type called BLOB (binary large object) that is used to store images. Take a look at the JDBC tutorial for more details and sample code.


[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
payal agrawal
Ranch Hand

Joined: Oct 11, 2005
Posts: 44
Look at this URL
http://www.java-tips.org/content/view/203/29/
shen LIU
Greenhorn

Joined: Aug 24, 2005
Posts: 2
thanks all :-)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to save/load images