Is there a way to Programmatically Insert a Picture inside of InfoPath. I
know they are in Base64 format but I can't get the image I have to match up
the way InfoPath stores them.
I have an image test.jpg and I want to store it in my:myFields/my:Picture
Is there anyway to do this?
Thanks,
Andrew
You will need to use managed code to be able to do this. You will have to write a function which will load the picture from file, encode it, and then copy the base64 encoded string into yoru picture field.

Signature
Greg Collins [InfoPath MVP]
Visit http://www.BrainTrove.com
Visit http://www.InfoPathDev.com
Is there a way to Programmatically Insert a Picture inside of InfoPath. I
know they are in Base64 format but I can't get the image I have to match up
the way InfoPath stores them.
I have an image test.jpg and I want to store it in my:myFields/my:Picture
Is there anyway to do this?
Thanks,
Andrew
Andrew - 25 Apr 2006 22:56 GMT
Yeah I had a momentary lapse. figured it out.
I’m doing it from behind the scenes in a workflow Product
Thanks
> You will need to use managed code to be able to do this. You will have to write a function which will load the picture from file, encode it, and then copy the base64 encoded string into yoru picture field.
>
[quoted text clipped - 9 lines]
>
> Andrew