Write Blob field via Python?

1758
4
09-13-2011 03:45 PM
LewLadd
New Contributor III
Hi Guys,
    I have a feature class with a blob field designed to hold images uploaded by users.

    Is it possible to populate the blob field via a python based service?
Thanks,
Lew.
Tags (2)
0 Kudos
4 Replies
StacyRendall1
Occasional Contributor III
Hmmm... Just found this post which says "ArcPy doesn't support reading or writing blob fields at 10.0."

I have never used a blob field before (so I'm not sure if it can do other fancy stuff as well), but can you store the file path as a string? You can definitely do that in Python - check out UpdateCursor.
0 Kudos
LewLadd
New Contributor III
Hi Stacy,

    Thanks for taking the time to reply.

    I wrote a quick test and trying to update with:

      newRow["myBlob"] = someBlob

does fail as you predicted.

So I'm using a column 'blobPath' and writing the blob to the path via a C# based fileUploader.

Thanks again,
Lew.
0 Kudos
GarrettMoeller
New Contributor III
Isn't it possible now?
0 Kudos
JamesCrandall
MVP Frequent Contributor
0 Kudos