Microsoft KB Archive/143425

= FIX: Cannot Load Binary Data or Files Containing Binary Data =

Article ID: 143425

Article Last Modified on 11/18/2003

-

APPLIES TO


 * Microsoft Visual Basic 4.0 Standard Edition
 * Microsoft Visual Basic 4.0 Professional Edition
 * Microsoft Visual Basic 4.0 32-Bit Enterprise Edition

-



This article was previously published under Q143425



SYMPTOMS
When using the RichTextBox control and attempting to load a text file that contains a blank line as the first line, or, assigning a file, which contains a blank line as the first line, to the FileName property of the RichTextBox control, you will receive an error (32002):

Cannot load binary data or files containing binary data



CAUSE
The RichTextBox control scans the file and examines the first 5 characters. This error is generated if any of the first 5 characters have an ANSI value less than 25 or greater than 250.



RESOLUTION
To workaround the problem, import the file into any text editor (MS-DOS Edit, Notepad or WordPad) and add 5 blank spaces on the first line.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been corrected in the Visual Basic version 4.0a for Windows synchronization release. This problem has also been corrected in Visual Basic 5.0 and 6.0.

Additional query words: kbVBp400bug kbVBp500fix kbVBp600fix kbVBp kbdsd kbDSupport kbControl

Keywords: kbbug kbfix KB143425

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.