Viewing Blob Data

2102
4
08-19-2010 09:18 AM
PaigeBaldassaro
New Contributor
I have a Blob field containing text. I can retrieve the data via IMemoryBlobStream2, but do not know how to view the content. Anyone out there know how to view Blob text content?
0 Kudos
4 Replies
LanceShipman
Esri Regular Contributor
IMemoryBlobStream::SaveToFile is the easiest way.
0 Kudos
PaigeBaldassaro
New Contributor
IMemoryBlobStream::SaveToFile is the easiest way.


So I have to save to file, then open the file and read it? Is that what you are suggesting?

I can do that. Just seems wasteful, so I wanted to clarify.
0 Kudos
LanceShipman
Esri Regular Contributor
Yes, that's what I'm suggesting. What do you want to do with the contents of the blob?
0 Kudos
PaigeBaldassaro
New Contributor
Yes, that's what I'm suggesting. What do you want to do with the contents of the blob?


Ok, thanks for the quick response! That's fine. I just need to be able to view the contents, so it seemed like a long way around a short stick.

It's a 1 to N relationship between feature and Blob entries. Therefore, click on feature, run macro, view many blobs of text stored in a standalone table in the same map as the feature class. So I'll have to append the blob entries to the file each time. Ugly. I may do it once, so I don't have to constantly open/write/read files.
0 Kudos