Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / April 2006

Tip: Looking for answers? Try searching our database.

Programmatically Insert a Picture

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrew - 25 Apr 2006 21:39 GMT
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
Greg Collins [InfoPath MVP] - 25 Apr 2006 22:01 GMT
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

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.