-
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.
http://msdn.microsoft.com/en-us/libr...(v=VS.90).aspx
In any case, check the MSDN documentation for System.IO.
HTH,
mc
PS: I assume you know how to use the browse dialog... if not check this
http://blogs.techrepublic.com.com/pr...lopment/?p=481
Last edited by MulaChula; 11-08-2010 at 09:29 AM.
Reason: forgot to add link
Similar Threads
-
By m60dude5 in forum ASP.NET
Replies: 0
Last Post: 03-20-2008, 10:49 AM
-
By beetle54 in forum VB Classic
Replies: 3
Last Post: 03-19-2008, 02:10 AM
-
By melvinoyh in forum Java
Replies: 1
Last Post: 04-25-2006, 08:34 AM
-
By lorenzo ladelfa in forum Architecture and Design
Replies: 0
Last Post: 07-01-2002, 04:33 PM
-
By K Deviprasad in forum Web
Replies: 0
Last Post: 05-11-2000, 07:49 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks