answersLogoWhite

0

using System.Data.OleDb; OleDb is used to connect the web site forms with MS Access Database using Microsoft.Jet.OLEDB.4.0 using System.IO; IO is used to create the memory stream variable that can store the binary format of the image content. C# Code to Upload Image to MS Access Database: int imageSize; string imageType; Stream imageStream; // Gets the Size of the Image imageSize = fileImgUpload.PostedFile.ContentLength; // Gets the Image Type imageType = fileImgUpload.PostedFile.ContentType; // Reads the Image stream imageStream = fileImgUpload.PostedFile.InputStream; byte[] imageContent = new byte[imageSize]; int intStatus; intStatus = imageStream.Read(imageContent, 0, imageSize); Connection string to connect the ASP.Net 2.0 web application with MS Access Database: // Access Database oledb connection string // Using Provider Microsoft.Jet.OLEDB.4.0 String connStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + HttpContext.Current.Server.MapPath("App_Data/db1.mdb");

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

How do you deploy a VBnet application with SQL database?

The question is too vague and broad to be answered. It's sort of like asking "How do you cook food?" The answer depends on the details of the application and database, and is not a simple straightforward universal process.


ADODB in VBNet?

ADODB (ActiveX Data Objects Database) in VB.NET is a set of COM libraries that enables developers to access and manipulate data from various sources, such as databases and spreadsheets. While VB.NET primarily uses ADO.NET for data access, ADODB can still be utilized for legacy applications or when interfacing with older technologies. It provides a simple way to execute SQL queries, retrieve data, and manage database connections. However, for new development, ADO.NET is generally recommended due to its better integration with the .NET framework and improved performance.


Is java better than vbnet?

Java is not better than VBNet, nor is VBNet better than Java. Eachone has its advantages and disadvantaged over the other one.


What is the difference between C and Vbnet?

It is just a different coding language, but C is more for business that VBNET


What is datareader in VBNET?

x


What is an instance in vbnet?

An instance in VBNet is the same as an instance in any other language; it is the realisation of a type. In object-oriented languages, like VBNet, we say that an object is an instance of a class, where the class defines the object's type.


What is instance in vbnet?

An instance in VBNet is the same as an instance in any other language; it is the realisation of a type. In object-oriented languages, like VBNet, we say that an object is an instance of a class, where the class defines the object's type.


IS VBNet purely objet oriented?

no


Who is the father of vbnet?

Alan Cooper


Is the Class type in VBNET a value type?

NO.


Who is the developer of vbnet?

Microsoft Microsoft.com/VisualStudio


How do you write a VBnet program to find the prime numbers between 100 to 200?

VBnet program to find the prime numbers between 100 to 200?