String is too long to fit in StrToFile

Posted on 2010-11-18
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

Question by:systematica
  • 2
  • 2
LVL 41

Accepted Solution

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:

Expert Comment

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



Author Closing Comment

ID: 34163794
It works!! Thanks a lot.
LVL 41

Expert Comment

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

Author Comment

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.

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

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://msd…
For months I had no idea how to 'discover' the IP address of the other end of a link (without asking someone who knows), and it drove me batty. Think about it. You can't use Cisco Discovery Protocol (CDP) because it's not implemented on the ASAs.…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

813 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

14 Experts available now in Live!

Get 1:1 Help Now