Solved

I need to use TFileStream with files larger than 2 GB

Posted on 2002-04-27
3
286 Views
Last Modified: 2010-08-05
I have been using TFileStream objects in my application, but have got problems whith files greater than 2 GBytes as Size, Seek etc use LongInt !

Can anyone think of a way around this. I suppose all I really need is a way of determining the size and setting the possition as an Int64!

Thanks for any help,
  Dave Taylor.
(This is my first question to ExpertsExchange)
0
Comment
Question by:DaveTaylor
3 Comments
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 6973535
where u got that problem b'coz reading 2gb files is quite interesing and can not be done with classes, methods provided by any language

hope u may get good answer
Good Luck
Sudhakar
0
 
LVL 12

Accepted Solution

by:
Lee_Nover earned 50 total points
ID: 6973707
you should check out : gpHugeFile

GpHugeFile / TGpHugeFileStream v.3.07a  FWS 49 Kb 17.12.01  
By Primoz Gabrijelcic. Encapsulation of Windows file-handling routines that allows work with >2GB files. Included is support for non-buffered access (FILE_FLAG_NO_BUFFERING) and buffering for sequentially accessed files. TGpHugeFile is interface to 64-bit file functions with some added functionality. TGpHugeFileStream is descendant of TStream that wraps TGpHugeFile.
 
Fully functional
Source: Included
Download: D5 D6  


checkout torry's wp : http://www.torry.net/filedrvother.htm
0
 

Author Comment

by:DaveTaylor
ID: 6974688
Many thanks for such a prompt answer.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
delphi custom sort exception 6 135
Mobile Keyboard covers the display of the TMemo 3 78
tidtcpserver connection lost handle 2 70
Dynamically Created Query 3 50
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now