Programmatically Insert a Picture

A

Andrew

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
 
G

Greg Collins [InfoPath MVP]

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.

--
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
 
A

Andrew

Yeah I had a momentary lapse. figured it out.

I’m doing it from behind the scenes in a workflow Product

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top