Sample code to upload an image in BSP using MIME object:
Go to transaction se 80-->Create a BSP applicationà Declare a page
We can upload image into program by two methods:
Import: You need to save image in local file and then follow the procedure as follows:
Create: In create option you can create your own file and you need to import the file .
To import the image into program follow the following procedure.
Step1: Create an object, right click on object create->mimeobject->import
.
Step2: Select the image from PC.
Step3: Give the name and description of image
Step4: We can check the image was uploaded into program or not from Mime object on the left side of page:
Step5: In layout write the code to display image as follows:
You can view the image in output.
1 Comment
Unknown User (102yf8vo0)
Good article!