answersLogoWhite

0

File file=new File("c:\\Time.jpg");
PreparedStatement ps=connection.prepareStatement("insert into Table1 (image_id, image_data) values(?,?);");
ps.setInt(0,124);
ps.setBinaryStream(1,in,(int)file.length());
ps.execute();

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What skills are required in order to create a database using Microsoft Access?

To create a database using Microsoft Access, you need basic computer skills, knowledge of Microsoft Office and specifically, the Access application. You can learn how to create a database using Microsoft Access at the Office section of the official Microsoft website. Once on the page, type "How to create an Access database" into the search field at the top of the page and press enter to bring up the information.


My son's college class requires Microsoft Access How is this accomplished on a MacBook?

Microsoft Access is currently not available for Mac OS. You could try using BootCamp and installing Windows XP SP2 onto the MacBook and install Microsoft Access onto the MacBook using the Windows mode. There are other alternatives to Microsoft Access, which are designed for the Mac OS, such as FileMaker Pro. But if your son's college class requires specifically Microsoft Access, I suggest either using BootCamp to install Windows or using a Windows running computer/portable. If the requirement is only to read the Access data then Actual Technologies produce software to enable this (See links below) .


What software is commonly used for reservation information?

If your question is that , using which software you can store the information then answer is you can reserve the information in database . The database is the collection of data. This database you can create using a softwares like Microsoft access ,Oracle or Sql server .


When using Microsoft access you select an entire record by clicking on what?

by clicking grey are on the left


Can I store images in a Microsoft acceess 2002-2003 format and retrieve them later using C?

Short answer: yes.The thing is, you would have to write all the code which finds and retrieves the image yourself. This is not a function built into C.


What are the advantages of using a validation rules?

The advantage of using validation rules in Microsoft Access is that you get clean and consistent data in your database.


How can you quickly access specific photographic images to use in your website?

You can quickly access specific photographic images for your website by using online stock photo websites like Shutterstock or Adobe Stock, or by searching for images on search engines like Google Images and ensuring they are labeled for reuse.


How do you store photos in a database using visual basic?

You cannot store images inside a database, you can store information about where the image is kept in a database. -Peter


How can I use a 360 photo viewer on Windows 10 to view immersive panoramic images?

To view immersive panoramic images using a 360 photo viewer on Windows 10, you can download and install a compatible app from the Microsoft Store. Once installed, open the app and upload your 360-degree photos to view them in a virtual reality-like experience. You can navigate through the images by clicking and dragging or using the app's built-in controls.


Where can one find heart images for a Valentines's Day card?

If one is using a Microsoft program to produce a Valentine's Day card then heart images can be found on Clip Art. One may be able to find images online on sites such as Google Images.


What is Microsoft Outlook Web Access?

Microsoft Outlook Web Access is a kind of Web based Exchange Server which can only accessed by using the browser. So, in simple term there is no need of email client application like Microsoft Outlook while working in the OWA environment.


What is database in access?

An Access database is a relational database contained in a single file that you can upload to a directory on your Web server. People typically create an Access database file using Microsoft Access or FrontPage.