Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Blob field SaveToMemory

Status
Not open for further replies.

Louis928

Technical User
Joined
Dec 14, 2001
Messages
1
Location
US
I'm using TurboPower Flashfiler v 1.57 and have a text file (about 7k in size) stored in a BLOB memo field. I want to save the memo to a TMemoryStream so I can examine the bytes and store certain bytes in an array. I have code to execute the SaveToStream procedure. Example, "TableNameFieldName.SaveToStream(StreamName : TMemoryStream)".

Problem is that when I attempt to compile and run the app, I get an Access violation error in my .exe file.

Could someone help me with this. I must be missing something in creation of the memory stream. I set up an instance of TMemoryStream and create it, but when I go to use it, I get the access error. I can do a SaveToFile without any problem.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top