Skip to Content
author's profile photo Former Member
Former Member

how to upload images in emp master using object get by key..

hi..

have a look on below image u can get an idea what i need..

i want to upload one image into . emp master image...

how can i do it..

i tried below way .. but not working

and one more image i attached this is sql db ..

one image i uploaded ..from front end and other one is from coding...

Dim emp_info As SAPbobsCOM.EmployeesInfo

emp_info = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oEmployeesInfo)

Dim EMP_ID As Integer = serverver0.SelectedValue

emp_info.GetByKey(EMP_ID)

emp_info.UserFields.Fields.Item("U_PortalUid").Value = txtuserid.Text

emp_info.UserFields.Fields.Item("U_PortalPwd").Value = txtpwd.Text

emp_info.Picture = "C:\Training\Logo.jpeg"

how can i solve this problem..

sql image.JPG (91.8 kB)
image.JPG (127.8 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 27, 2013 at 04:40 AM

    Hi Srinivas,

    The images attached in the employee master data will be stored in pictures folder path set in general settings.

    Before u assign a picture to employee, first copy the picture to picture folder path and set the picture in the following way

    emp_info.Picture = "Logo.jpeg"

    Regards

    Kartheek

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.