File Header and Footer signature in VB.NET
Hello all & Greetings!!!
I am a newbie into programming and I need to develop an application in VB.NET, which should be able to read the first 4-bytes and last 4-bytes of any file selected by the user using a BROWSE Dialog from the application
also, in the backend, I am planning to use MSSQL for storing 3 fields, File Header, File Footer, and Extension,
when the user selects any file via BROWSE, then the file header and footer values should be checked from the database, and I am planning to pre-populate all the file types with their extensions along with Header and Footer values,
so, if a match exists then it should display the extension for that file BASED on the HEADER and FOOTER values.
Can anyone help me with this,
I am a newbie and dont know how to integrate the MSSQL DB in the VB.NET app, i am learning,
and how do i read the FILE details like HEADER and FOOTER, and how can i compare using the VB.NET code from the DB.
Can anyone please help me.
Thanks in advance
I am a newbie too... but my guess is the class you need is System.IO.TextReader
It has a Read method that should work for you.
TextReader.Read Method (Char(), Int32, Int32)
Reads a maximum of count characters from the current stream and writes the data to buffer, beginning at index.
In any case, check the MSDN documentation for System.IO.
PS: I assume you know how to use the browse dialog... if not check this
Last edited by MulaChula; 11-08-2010 at 09:29 AM.
Reason: forgot to add link
By m60dude5 in forum ASP.NET
Last Post: 03-20-2008, 10:49 AM
By beetle54 in forum VB Classic
Last Post: 03-19-2008, 02:10 AM
By melvinoyh in forum Java
Last Post: 04-25-2006, 08:34 AM
By lorenzo ladelfa in forum Architecture and Design
Last Post: 07-01-2002, 04:33 PM
By K Deviprasad in forum Web
Last Post: 05-11-2000, 07:49 AM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL