I need to insert an imagen into a SQL Server Database and i need to do it using jsp, but i don't know how to do it. Someone can teach me the best way to do that?

The two methods are to store the image directly in the table as a blob or to store it on disk (or in the cloud) and store the location/path in your table.

I'd favour the latter approach simply because it's simpler, keeps your database size manageable, doesn't require you to serialise and deseriealise every time you need to read or write it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.