Solved

String is too long to fit in StrToFile

Posted on 2010-11-18
5
1,735 Views
Last Modified: 2012-05-10
Hi experts, I have a "String is too long to fit" error using the StrToFile function.
This is the context:
- I have a BLOB field in an Oracle table (the blob contains a pfd file)
- I do a select to read the field and I get a FoxPro cursor
- I write the content of the blob filed to a file using StrToFile

When the size of the blob is large (20-25 MB) I get the error
Also tried to use fcreate and fwrite but I get the same error

0
Comment
Question by:systematica
  • 2
  • 2
5 Comments
 
LVL 42

Accepted Solution

by:
pcelba earned 500 total points
ID: 34163046
The maximum string size is about 16 MB in VFP.

To copy a blob field into a file you have to use:

COPY MEMO YourBlob TO YourFile

More into: http://msdn.microsoft.com/en-us/library/3cc1x337(VS.80).aspx
1
 
LVL 1

Expert Comment

by:Lacca
ID: 34163071
Hi.
What is your databade version?
Read the site bellow, maybe you'll find the answer

From: http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:525622260411

Regards.
0
 

Author Closing Comment

by:systematica
ID: 34163794
It works!! Thanks a lot.
0
 
LVL 42

Expert Comment

by:pcelba
ID: 34164404
I am just curious what it should do to obtain A rating... :-)
0
 

Author Comment

by:systematica
ID: 34164586
I'm newbie, I should probably give less points to the demand as the problem was not complex and give an A for the promptness and correctness of the solution.
Sorry
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
foxpro 9 formset issue 6 713
Translate dll vb.net code to VFP 9 10 721
Using UDFs in grids 3 249
diarydate calendar in vfp retrun data to form 7 462
Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: http://msdn.microsoft.com/en-us/vfoxpro/default.aspx (http://msd…
If you are looking at this article, you have most likely been hit by some version of ransomware and are trying to find out if there is anything you can do, or what way you should react - READ ON!
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

828 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