Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accesing general fields
Message
From
06/07/2001 04:53:41
 
 
To
28/06/2001 16:14:52
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00524892
Message ID:
00527347
Views:
25
Hi!

I see nobody answer to this thread so far, so I can try to help you if this is needed.

What exactly you do when save image in the general field?

When image was saved using APPEND GENERAL command, I douobt you can do this from VB. THis is because ADO return general field as binary field type, you can get its content using AppendChunk method of that field or just by using saving into the file by ADO Stream object. However, the content of such general field is not the BMP file itself. I know there is a tool that allows to strip out the BMP file from general field content, however I do not remember where I have seen it. try to search for it here, at www.tek-tips.com, ProFox list server archives or ask about this specifically in another thread (like "How to strip out BMP file from the general field content"). However, read before that next paragraph.

Well, you can use another approach to store images in the VFP database. BMP file could be easy and by reliable way stored in the Memo field in VFP table. Take a look to the FileToStr() and StrToFile() functions in the help. They will help you to get file into string and save it in the memo field. As opposite, StrToFile will allow you to write content of memo field into the temporary BMP file to display it in the Image control (in VFP) or in whatever control you want (include in VB).

>Hi everybody, how can I access a .bmp file from a general field using ADO? I need use VB in this case to show the pict in a control. Since now, thank you very much.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform