Solved

I need to use TFileStream with files larger than 2 GB

Posted on 2002-04-27
3
293 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

752 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